/* Import Roboto font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');


: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 */
  --color-accent-2: #FF7E67;     /* Sunset orange - complementary accent */
  --color-accent-3: #4A4A4A;     /* Dark gray - 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;
}

.tracker-header {
  padding: 0;
  margin-bottom: 35px;
  border-bottom: none;
}

.tracker-header h1 {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 15px 20px;
  color: var(--color-text);
  padding-bottom: 8px;
}

.tracker-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;
}

.tracker-nav::-webkit-scrollbar {
  height: 4px;
  background: transparent;
}

.tracker-nav::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

.tracker-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;
}

.tracker-tab:focus {
  outline: none;
}

.tracker-tab.active {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 190, 200, 0.3);
}

.tracker-tab:hover:not(.active) {
  background-color: rgba(0, 190, 200, 0.1);
  color: var(--color-primary);
}

#tracker-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;
}

.footer {
  text-align: center;
  margin-top: 15px;
  padding: 10px;
  color: #666;
  font-size: 14px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-container {
    padding: 10px;
  }
  .tracker-header h1 {
    font-size: 24px;
    margin: 0 0 12px 10px;
  }
  .tracker-nav {
    min-height: 48px;
    padding: 0 10px;
    margin: 30px 0 15px 0;
  }
  .tracker-tab {
    padding: 8px 14px;
    font-size: 13px;
    min-height: 36px;
  }
  #tracker-content-container {
    padding: 10px;
  }
}

/* Stats Cards */
.tracker-stats {
  display: flex;
  gap: 32px;
  margin: 24px 0 32px 0;
  flex-wrap: wrap;
}

.stat-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 32px 28px;
  min-width: 240px;
  max-width: 280px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
  border: 1.5px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent);
  opacity: 0.8;
}

.stat-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.stat-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 8px 0;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 3.2rem;
  font-weight: 700;
  margin: 10px 0;
}

/* Open Packets Card - Coral color to match "Pending 164 Review" */
.stat-card.open {
  --card-accent: #FF7E67;
}
.stat-card.open .stat-value {
  color: #FF7E67;
}

/* Completed Packets Card - Turquoise to match "Completed" */
.stat-card.completed {
  --card-accent: var(--color-primary);
}
.stat-card.completed .stat-value {
  color: var(--color-primary);
}

/* Cancelled Packets Card - Dark gray to match "Cancelled" */
.stat-card.cancelled {
  --card-accent: #4A4A4A;
}
.stat-card.cancelled .stat-value {
  color: #4A4A4A;
}

/* Filters Section */
.tracker-filters {
  margin: 20px 0;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-size: 14px;
  color: var(--color-text);
  font-weight: 500;
}

.search-box {
  margin-top: 10px;
}

.search-box input {
  width: 100%;
  max-width: 300px;
  padding: 8px 12px;
}

/* Grid Customization */
.k-grid {
  border-color: var(--color-border) !important;
  font-family: 'Roboto', sans-serif !important;
}

.k-grid th {
  background-color: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 12px 16px !important;
}

.k-grid td {
  padding: 12px 16px !important;
  border-color: var(--color-border) !important;
  font-size: 14px !important;
  white-space: normal !important;
  line-height: 1.4 !important;
}

/* Grid Column Widths */
.k-grid th[data-field="shortTitle"],
.k-grid td[data-field="shortTitle"] {
  width: 35% !important;
  min-width: 300px !important;
}

.k-grid th[data-field="currentLocation"],
.k-grid td[data-field="currentLocation"] {
  width: 20% !important;
  min-width: 200px !important;
}

.k-grid th[data-field="sponsor"],
.k-grid td[data-field="sponsor"] {
  width: 15% !important;
  min-width: 150px !important;
}

/* Fixed width columns */
.k-grid th[data-field="id"],
.k-grid td[data-field="id"],
.k-grid th[data-field="type"],
.k-grid td[data-field="type"],
.k-grid th[data-field="leadAgency"],
.k-grid td[data-field="leadAgency"] {
  width: 100px !important;
}

.k-grid th[data-field="lastUpdated"],
.k-grid td[data-field="lastUpdated"] {
  width: 120px !important;
}

/* Action buttons columns */
.k-grid th[data-title="View/Track"],
.k-grid td:has(> .k-button.k-primary),
.k-grid th[data-title="Delete"],
.k-grid td:has(> .k-button:not(.k-primary)) {
  width: 100px !important;
  text-align: center !important;
}

.k-grid tr:hover {
  background-color: var(--color-surface) !important;
}

.k-grid a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.k-grid a:hover {
  text-decoration: underline;
}

.k-button {
  border-radius: 4px !important;
  font-weight: 500 !important;
  padding: 6px 12px !important;
}

.k-button.k-primary {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

.k-dropdown {
  min-width: 200px !important;
}

#print-pdf {
  margin-left: auto;
  background-color: var(--color-text) !important;
  border-color: var(--color-text) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
}

/* Packet Tracker Dialog Styles */
.packet-tracker-content {
    padding: 20px;
}

.packet-tracker-title {
    font-size: 24px;
    color: var(--color-text);
    margin-bottom: 15px;
}

.packet-tracker-description {
    color: var(--color-text);
    margin-bottom: 25px;
    line-height: 1.6;
}

.packet-tracker-nav {
    display: flex;
    gap: 4px;
    padding: 0 15px;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-surface);
    margin: 20px 0;
    overflow-x: auto;
    min-height: 52px;
    align-items: center;
}

.packet-tracker-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;
}

.packet-tracker-tab:hover:not(.active) {
    background-color: rgba(0, 190, 200, 0.1);
    color: var(--color-primary);
}

.packet-tracker-tab.active {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 190, 200, 0.3);
}

.packet-tracker-tab-content {
    display: none;
    padding: 20px;
}

.packet-tracker-tab-content.active {
    display: block;
}

#add-reviewer-location {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 14px;
}

@media (max-width: 480px) {
  .tracker-header h1 {
    font-size: 20px;
    text-align: center;
    margin: 0 0 10px 0;
  }
  .tracker-nav {
    min-height: 44px;
    padding: 0 8px;
    margin: 25px 0 12px 0;
  }
  .tracker-tab {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 34px;
  }
  .filter-section {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }
  #print-pdf {
    width: 100%;
    margin-top: 10px;
  }
}

/* Location Log Slide Modal Styles */
.location-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.location-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.location-slide-modal {
  position: fixed;
  top: 0;
  right: -100%;
  width: 500px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 10050;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  font-family: 'Roboto', sans-serif;
}

.location-slide-modal.active {
  right: 0;
}

.location-slide-modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.location-slide-modal-header {
  background: var(--color-primary);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.location-slide-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.location-slide-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.location-slide-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.location-slide-modal-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.location-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.location-section:last-child {
  border-bottom: none;
}

.location-section h3 {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.location-form-group {
  margin-bottom: 15px;
}

.location-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.location-form-group label.required::before {
  content: "* ";
  color: var(--color-accent);
}

.location-readonly-value {
  padding: 10px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--color-text);
}

.location-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  background-color: white;
  box-sizing: border-box;
}

.location-input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 190, 200, 0.1);
}

.location-save-button,
.location-add-note-btn {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.location-save-button:hover,
.location-add-note-btn:hover {
  background-color: #00a8b0;
  transform: translateY(-1px);
}

.location-radio-group {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.location-radio-group label {
  display: flex;
  align-items: center;
  font-size: 14px !important;
  font-weight: normal !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  margin-bottom: 0 !important;
  cursor: pointer;
}

.location-radio-group input[type="radio"] {
  margin-right: 6px;
  accent-color: var(--color-primary);
}

.location-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin: 20px 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.location-notes-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  font-size: 14px;
}

.location-page-btn {
  background: white;
  border: 1px solid var(--color-border);
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.location-page-btn:disabled {
  background: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
}

.location-page-number {
  background: var(--color-primary);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.location-items-label {
  color: #666;
  font-size: 12px;
  margin-left: auto;
}

/* Action button styling for grid */
.location-view-btn,
.location-delete-btn {
  font-size: 12px !important;
  padding: 4px 8px !important;
  min-width: 50px !important;
}

.location-delete-btn {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}

.location-delete-btn:hover {
  background-color: #5a6268 !important;
  border-color: #545b62 !important;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
  .location-slide-modal {
    width: 100%;
    right: -100%;
  }
  
  .location-slide-modal-header {
    padding: 15px;
  }
  
  .location-slide-modal-body {
    padding: 15px;
  }
  
  .location-radio-group {
    flex-direction: column;
    gap: 10px;
  }
}

/* Manage Locations Styles */
.manage-locations-content {
  font-family: 'Roboto', sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
  padding: 20px;
}

.manage-locations-title {
  color: var(--color-primary);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.manage-locations-description {
  color: var(--color-text);
  font-size: 14px;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

.current-locations-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.locations-section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  padding: 15px 20px;
  border-bottom: 1px solid var(--color-border);
}

/* Tab Navigation - Pill Style */
.manage-locations-nav {
  display: flex;
  gap: 4px;
  padding: 0 15px;
  border-bottom: 1px solid #ddd;
  background-color: #f4f7fa;
  margin: 35px 0 20px 0;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 52px;
  align-items: center;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #00bec8 transparent;
  position: relative;
  z-index: 1;
}

/* Style the scrollbar for webkit browsers */
.manage-locations-nav::-webkit-scrollbar {
  height: 4px;
  background: transparent;
}

.manage-locations-nav::-webkit-scrollbar-thumb {
  background: #00bec8;
  border-radius: 4px;
}

.manage-locations-tab {
  padding: 10px 18px;
  border: none;
  background-color: transparent;
  color: #666;
  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;
}

.manage-locations-tab:focus {
  outline: none;
}

.manage-locations-tab.active {
  background-color: #00bec8;
  color: white;
  box-shadow: 0 2px 8px rgba(64, 224, 208, 0.3);
}

.manage-locations-tab:hover:not(.active) {
  background-color: rgba(64, 224, 208, 0.1);
  color: #00bec8;
}

/* Add Location Section */
.add-location-section {
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
}

.add-location-section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.add-location-title {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.add-location-description {
  color: var(--color-text);
  font-size: 14px;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.add-location-button {
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: auto;
  display: inline-block;
  min-width: 150px;
  max-width: 200px;
}

.add-location-button:hover {
  background: var(--color-accent-3);
}

/* Locations Grid */
.locations-grid-container {
  padding: 20px;
}

.location-name-link {
  color: var(--color-primary);
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
}

.location-name-link:hover {
  text-decoration: underline;
}

/* Modal Form Styles */
.location-form-group {
  margin-bottom: 20px;
}

.location-form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 6px;
}

.location-form-group label.required {
  color: var(--color-primary);
}

.location-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.location-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 139, 200, 0.2);
}

.location-input:invalid {
  border-color: #ffc107;
}

.location-input:invalid:focus {
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.location-form-actions {
  padding: 20px 0;
  border-top: 1px solid #eee;
  margin-top: 30px;
}

.location-save-button {
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: auto;
  min-width: 180px;
}

.location-save-button:hover {
  background: var(--color-accent-3);
}

.location-save-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Grid Action Buttons */
.edit-location-btn {
  background: var(--color-primary) !important;
  color: white !important;
  border: none !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border-radius: 3px !important;
  cursor: pointer !important;
  margin-right: 5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  transition: background-color 0.3s ease !important;
}

.edit-location-btn:hover {
  background: #0078a3 !important;
  color: white !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.delete-location-btn {
  background: #6c757d !important;
  color: white !important;
  border: none !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border-radius: 3px !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  transition: background-color 0.3s ease !important;
}

.delete-location-btn:hover {
  background: #5a6268 !important;
  color: white !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Kendo Grid Customizations for Locations */
#locations-grid .k-grid-header {
  background: var(--color-primary);
  color: white;
}

#locations-grid .k-grid-header th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-color: rgba(255, 255, 255, 0.2);
}

#locations-grid .k-grid-content {
  border-color: var(--color-border);
}

#locations-grid .k-grid-content td {
  border-color: var(--color-border);
  padding: 12px 8px;
  vertical-align: middle;
}

#locations-grid .k-alt {
  background-color: #fafbfc;
}

#locations-grid .k-grid-content tr:hover {
  background-color: rgba(0, 139, 200, 0.05);
}

/* Responsive adjustments for manage locations */
@media (max-width: 768px) {
  .manage-locations-content {
    padding: 15px;
  }
  
  .manage-locations-title {
    font-size: 24px;
  }
  
  .manage-locations-nav {
    gap: 2px;
    padding: 0 10px;
    margin: 20px 0 15px 0;
    min-height: 48px;
  }
  
  .manage-locations-tab {
    padding: 8px 14px;
    font-size: 13px;
    min-height: 36px;
    border-radius: 18px;
  }
  
  .add-location-section {
    padding: 15px;
  }
  
  .locations-grid-container {
    padding: 15px;
    overflow-x: auto;
  }
  
  #locations-grid {
    min-width: 600px;
  }
}

/* Ad Hoc Selection Dropdown Styles */
.selection-dropdown-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 180px;
}

.selection-dropdown {
  width: 100%;
  padding: 6px 30px 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.selection-dropdown:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 4px rgba(0, 139, 200, 0.1);
}

.selection-dropdown:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 139, 200, 0.2);
}

/* Selection-specific styling */
.selection-do-nothing {
  color: #6c757d;
  border-color: #dee2e6;
}

.selection-add-to-master {
  color: #27ae60;
  border-color: #27ae60;
  background: rgba(39, 174, 96, 0.05);
}

.selection-remove {
  color: #e74c3c;
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
}

.selection-dropdown-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #666;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.selection-dropdown-container:hover .selection-dropdown-icon {
  color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

/* Add subtle hover effect to the entire dropdown container */
.selection-dropdown-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 6px;
  background: linear-gradient(45deg, transparent, rgba(0, 139, 200, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.selection-dropdown-container:hover::before {
  opacity: 1;
}

/* Make the selection column stand out slightly */
#locations-grid td:last-child {
  background: rgba(0, 139, 200, 0.02);
}

#locations-grid tr:hover td:last-child {
  background: rgba(0, 139, 200, 0.05);
}

/* Add a subtle border to the selection column */
#locations-grid .k-grid-header th:last-child {
  border-left: 2px solid rgba(0, 139, 200, 0.3);
  background: linear-gradient(135deg, var(--color-primary), rgba(0, 139, 200, 0.8));
}

#locations-grid td:last-child {
  border-left: 1px solid rgba(0, 139, 200, 0.2);
}

/* Save and Cancel buttons for ad hoc changes */
.adhoc-actions {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid var(--color-primary);
}

.save-changes-btn {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.save-changes-btn:hover {
  background: var(--color-accent-3);
}

.cancel-changes-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cancel-changes-btn:hover {
  background: #5a6268;
}

/* Manage Templates Styles */
.manage-templates-content {
  font-family: 'Roboto', sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
  padding: 20px;
}

.manage-templates-title {
  color: var(--color-primary);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.manage-templates-description {
  color: var(--color-text);
  font-size: 14px;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

.current-templates-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.templates-section-title {
  background: var(--color-primary);
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  padding: 15px 20px;
}

/* Add Template Section */
.add-template-section {
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
}

.add-template-section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.add-template-title {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.add-template-description {
  color: var(--color-text);
  font-size: 14px;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.add-template-button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: auto;
  display: inline-block;
  min-width: 150px;
  max-width: 200px;
}

.add-template-button:hover {
  background: var(--color-accent-3);
}

/* Templates Grid */
.templates-grid-container {
  padding: 20px;
}

.template-title-link {
  color: var(--color-primary);
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
}

.template-title-link:hover {
  text-decoration: underline;
}

/* Template Grid Action Buttons */
.edit-template-btn {
  background: var(--color-primary) !important;
  color: white !important;
  border: none !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border-radius: 3px !important;
  cursor: pointer !important;
  margin-right: 5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  transition: background-color 0.3s ease !important;
}

.edit-template-btn:hover {
  background: #0078a3 !important;
  color: white !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.delete-template-btn {
  background: #6c757d !important;
  color: white !important;
  border: none !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border-radius: 3px !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  transition: background-color 0.3s ease !important;
}

.delete-template-btn:hover {
  background: #5a6268 !important;
  color: white !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Template Modal Specific Styles */
.template-slide-modal {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 1000px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease;
  z-index: 10001;
  overflow-y: auto;
}

.template-slide-modal.active {
  right: 0;
}

.template-slide-modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.template-slide-modal-header {
  background: var(--color-primary);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.template-slide-modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.template-slide-modal-body {
  flex: 1;
  padding: 30px;
  background: #f8f9fa;
}

.template-breadcrumb {
  color: var(--color-text);
  font-size: 14px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.template-form-group {
  margin-bottom: 20px;
}

.template-label {
  display: block;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.template-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  box-sizing: border-box;
}

.template-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(64, 224, 208, 0.2);
}

.template-save-section {
  margin-bottom: 30px;
}

.template-save-button {
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.template-save-button:hover {
  background: var(--color-accent-3);
}

.template-locations-section {
  margin-top: 30px;
}

.template-locations-title {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.template-locations-grid-container {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.add-reviewer-link {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  font-weight: 500;
}

.add-reviewer-link:hover {
  text-decoration: underline;
}

/* Template locations grid customization */
#template-locations-grid .k-grid-header {
  background: var(--color-primary);
  color: white;
}

#template-locations-grid .k-grid-header th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-color: rgba(255, 255, 255, 0.2);
}

#template-locations-grid .k-grid-content {
  border-color: var(--color-border);
}

#template-locations-grid .k-grid-content td {
  border-color: var(--color-border);
  padding: 12px 8px;
  vertical-align: middle;
}

#template-locations-grid .k-alt {
  background-color: #fafbfc;
}

#template-locations-grid .k-grid-content tr:hover {
  background-color: rgba(0, 139, 200, 0.05);
}

/* Responsive adjustments for template modal */
@media (max-width: 768px) {
  .template-slide-modal {
    width: 95%;
  }
  
  .template-slide-modal-body {
    padding: 20px;
  }
  
  .template-slide-modal-header {
    padding: 15px;
  }
  
  .template-slide-modal-header h2 {
    font-size: 20px;
  }
}

/* Kendo Grid Customizations for Templates */
#templates-grid .k-grid-header {
  background: var(--color-primary);
  color: white;
}

#templates-grid .k-grid-header th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-color: rgba(255, 255, 255, 0.2);
}

#templates-grid .k-grid-content {
  border-color: var(--color-border);
}

#templates-grid .k-grid-content td {
  border-color: var(--color-border);
  padding: 12px 8px;
  vertical-align: middle;
}

#templates-grid .k-alt {
  background-color: #fafbfc;
}

#templates-grid .k-grid-content tr:hover {
  background-color: rgba(0, 139, 200, 0.05);
}

/* Responsive adjustments for manage templates */
@media (max-width: 768px) {
  .manage-templates-content {
    padding: 15px;
  }
  
  .manage-templates-title {
    font-size: 24px;
  }
  
  .add-template-section {
    padding: 15px;
  }
  
  .templates-grid-container {
    padding: 15px;
    overflow-x: auto;
  }
  
  #templates-grid {
    min-width: 600px;
  }
  
  .review-locations-container {
    padding: 10px;
  }
  
  .checkbox-label {
    font-size: 13px;
  }
}

/* Kendo Dialog Z-Index Overrides */
.k-window {
  z-index: 9999 !important; /* Ensure Kendo dialogs stay below our custom modals */
}

.k-overlay {
  z-index: 9998 !important; /* Kendo overlay should be below dialogs */
}

/* Custom modal hierarchy (higher than Kendo) */
.location-modal-overlay {
  z-index: 10000 !important; /* Base overlay for custom modals */
}

.template-slide-modal {
  z-index: 10001 !important; /* Template modal */
}

.location-slide-modal {
  z-index: 10050 !important; /* Location modal - appears above Kendo dialogs */
}

.add-reviewer-modal {
  z-index: 10100 !important; /* Reviewer modal - highest priority */
}

/* Finalize 164 Packet Section */
.finalize-packet-section {
  margin-top: 40px;
  padding: 25px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-top: 3px solid var(--color-primary);
}

.finalize-packet-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.finalize-packet-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 25px;
  font-style: italic;
}

.finalize-packet-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.finalize-btn {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 180px;
}

.finalize-btn:hover {
  background-color: #00a8b0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 190, 200, 0.3);
}

.cancel-btn {
  background-color: #4A4A4A;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 160px;
}

.cancel-btn:hover {
  background-color: #3a3a3a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 74, 74, 0.3);
}

/* Responsive adjustments for finalize section */
@media (max-width: 768px) {
  .finalize-packet-section {
    margin-top: 30px;
    padding: 20px;
  }
  
  .finalize-packet-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .finalize-btn,
  .cancel-btn {
    width: 100%;
    min-width: auto;
  }
}

/* Add New Reviewer Location Modal Styles */
.add-reviewer-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 500px;
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 10100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
  overflow: hidden;
}

.add-reviewer-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.add-reviewer-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.add-reviewer-modal-header {
  background: var(--color-primary);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.add-reviewer-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.add-reviewer-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.add-reviewer-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.add-reviewer-modal-body {
  padding: 25px;
  flex: 1;
  overflow-y: auto;
}

.location-type-section {
  margin-bottom: 30px;
}

.location-type-section h3 {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 15px 0;
}

.location-type-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-type-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
}

.location-type-option input[type="radio"] {
  margin-right: 10px;
  accent-color: var(--color-primary);
}

.location-type-label {
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}

.location-selection-section h4 {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.location-list-container {
  margin-bottom: 20px;
}

.location-select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  background-color: white;
  padding: 5px;
  min-height: 200px;
}

.location-select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 190, 200, 0.1);
}

.location-select optgroup {
  font-weight: 600;
  color: var(--color-text);
  font-style: normal;
  padding: 5px 0;
}

.location-select option {
  padding: 5px 10px;
  color: var(--color-text);
}

.add-location-button {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
}

.add-location-button:hover {
  background-color: #00a8b0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 190, 200, 0.3);
}

/* Responsive adjustments for add reviewer modal */
@media (max-width: 768px) {
  .add-reviewer-modal {
    width: 95vw;
    max-height: 85vh;
  }
  
  .add-reviewer-modal-header {
    padding: 15px;
  }
  
  .add-reviewer-modal-body {
    padding: 20px;
  }
  
  .location-type-options {
    gap: 8px;
  }
  
  .location-select {
    min-height: 150px;
  }
}

/* General Information Tab Styles */
.general-info-content {
  font-family: 'Roboto', sans-serif;
  background-color: var(--color-surface);
  padding: 20px;
  height: 100%;
  box-sizing: border-box;
}

.general-info-header {
  margin-bottom: 30px;
}

.general-info-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px 0;
}

.general-info-breadcrumb {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.general-info-form {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.info-section {
  width: 100%;
}

.info-section .section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.info-section .section-note {
  font-size: 13px;
  color: #666;
  font-style: italic;
  margin-bottom: 25px;
  line-height: 1.4;
}

.info-row {
  margin-bottom: 20px;
}

.info-group {
  display: flex;
  flex-direction: column;
}

.info-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
}

.info-group label:not([class*="full-title"]):not([class*="short-title"]) {
  text-transform: uppercase;
}

.info-value {
  padding: 12px 15px;
  background-color: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--color-text);
  min-height: 20px;
  box-sizing: border-box;
  line-height: 1.4;
}

.info-value.info-textarea {
  min-height: 80px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.info-value:empty::before {
  content: "Not specified";
  color: #999;
  font-style: italic;
}

/* Responsive adjustments for general info */
@media (max-width: 768px) {
  .general-info-content {
    padding: 15px;
  }
  
  .general-info-header {
    margin-bottom: 20px;
  }
  
  .general-info-title {
    font-size: 24px;
  }
  
  .general-info-form {
    padding: 20px;
  }
  
  .info-section .section-title {
    font-size: 16px;
  }
  
  .info-value {
    padding: 10px 12px;
  }
}

/* Contact Information Tab Styles */
.contact-info-content {
  font-family: 'Roboto', sans-serif;
  background-color: var(--color-surface);
  padding: 20px;
  min-height: 500px;
  overflow-y: auto;
}

.contact-info-header {
  margin-bottom: 30px;
}

.contact-info-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px 0;
}

.contact-info-breadcrumb {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info-form {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Documents Tab Styles */
.documents-content {
  font-family: 'Roboto', sans-serif;
  background-color: var(--color-surface);
  padding: 20px;
  min-height: 500px;
  overflow-y: auto;
}

.documents-header {
  margin-bottom: 30px;
}

.documents-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px 0;
}

.documents-breadcrumb {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.documents-form {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Upload Area Styles */
.upload-area {
  margin: 20px 0;
}

.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  background-color: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-zone:hover {
  border-color: var(--color-primary);
  background-color: var(--color-surface);
}

.upload-icon {
  font-size: 48px;
  color: var(--color-border);
  margin-bottom: 15px;
}

.upload-text {
  font-size: 16px;
  color: #666;
  margin: 0 0 20px 0;
}

.upload-input {
  display: none;
}

.upload-button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.upload-button:hover {
  background: #009aa3;
}

.upload-button i {
  margin-right: 8px;
}

/* Documents Table Styles */
.documents-table-container {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.documents-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.documents-table thead {
  background: var(--color-surface);
}

.documents-table th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--color-border);
}

.documents-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #eee;
  color: var(--color-text);
  font-size: 14px;
}

.documents-table tbody tr:hover {
  background-color: #f9f9f9;
}

.no-data {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 40px !important;
}

.document-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
}

.action-btn.download {
  color: var(--color-primary);
}

.action-btn.delete {
  color: #dc3545;
}

.action-btn.delete:hover {
  background: #f8d7da;
  border-color: #dc3545;
}

/* Responsive adjustments for Contact and Documents tabs */
@media (max-width: 768px) {
  .contact-info-content,
  .documents-content {
    padding: 15px;
  }
  
  .contact-info-header,
  .documents-header {
    margin-bottom: 20px;
  }
  
  .contact-info-title,
  .documents-title {
    font-size: 24px;
  }
  
  .contact-info-form,
  .documents-form {
    padding: 20px;
  }
  
  .upload-zone {
    padding: 30px 20px;
  }
  
  .upload-icon {
    font-size: 36px;
  }
  
  .upload-text {
    font-size: 14px;
  }
  
  .documents-table {
    font-size: 12px;
  }
  
  .documents-table th,
  .documents-table td {
    padding: 10px 8px;
  }
}

/* Create New 164 Packet Wizard Styles */
.create-packet-container {
  font-family: 'Roboto', sans-serif;
  background-color: var(--color-surface);
  padding: 30px;
  min-height: 600px;
  overflow-y: auto;
}

.create-packet-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 40px 0;
  text-align: center;
}

/* Wizard Steps Navigation */
.create-wizard-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
  position: relative;
}

.create-wizard-steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 20%;
  right: 20%;
  height: 2px;
  background-color: #ddd;
  z-index: 1;
}

.create-wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 200px;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: all 0.3s ease;
}

.create-step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f0f0f0;
  border: 3px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  position: relative;
}

.create-wizard-step.active .create-step-circle {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.create-wizard-step.completed .create-step-circle {
  background-color: #28a745;
  border-color: #28a745;
  color: white;
}

.create-step-number {
  font-size: 18px;
  font-weight: 600;
}

.create-step-check {
  font-size: 20px;
}

.create-step-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
  margin-top: 8px;
  max-width: 120px;
  line-height: 1.3;
}

.create-wizard-step.active .create-step-label {
  color: var(--color-primary);
  font-weight: 600;
}

/* Wizard Content */
.create-wizard-content {
  display: none;
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 1200px;
  width: 95%;
}

.create-wizard-content.active {
  display: block;
}

.create-step-header {
  margin-bottom: 30px;
  text-align: center;
}

.create-step-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 15px 0;
}

.create-step-note {
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin: 0;
  line-height: 1.4;
}

/* Form Styles */
.create-packet-form {
  margin-bottom: 30px;
}

.create-form-row {
  margin-bottom: 25px;
}

.create-form-group {
  display: flex;
  flex-direction: column;
}

.create-form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.create-form-input,
.create-form-select,
.create-form-textarea {
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--color-text);
  background-color: white;
  transition: border-color 0.3s ease;
  font-family: 'Roboto', sans-serif;
}

.create-form-input:focus,
.create-form-select:focus,
.create-form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 190, 200, 0.1);
}

.create-form-textarea {
  resize: vertical;
  min-height: 100px;
}

.create-form-input.error,
.create-form-select.error,
.create-form-textarea.error {
  border-color: var(--color-accent-2);
  background-color: #fff5f5;
}

/* Radio Group Styles */
.create-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
}

.create-radio-group.error {
  background-color: #fff5f5;
  padding: 10px;
  border-radius: 6px;
  border: 2px solid var(--color-accent-2);
}

.create-radio-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}

.create-radio-input {
  margin-right: 8px;
  transform: scale(1.2);
  accent-color: var(--color-primary);
}

/* Sponsor Selection Rows */
.create-sponsor-selection {
  margin-left: 20px;
  padding-left: 15px;
  border-left: 3px solid var(--color-border);
}

/* Wizard Buttons */
.create-wizard-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.create-btn {
  padding: 15px 30px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.create-btn-next,
.create-btn-submit {
  background: var(--color-primary);
  color: white;
}

.create-btn-next:hover,
.create-btn-submit:hover {
  background: #009aa3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 190, 200, 0.3);
}

.create-btn-prev {
  background: #f8f9fa;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.create-btn-prev:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Responsive Design for Create Wizard */
@media (max-width: 768px) {
  .create-packet-container {
    padding: 20px;
  }
  
  .create-packet-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .create-wizard-steps {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .create-wizard-steps::before {
    display: none;
  }
  
  .create-wizard-step {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
  
  .create-step-circle {
    margin-bottom: 0;
    margin-right: 15px;
  }
  
  .create-step-label {
    margin-top: 0;
    max-width: none;
    text-align: left;
  }
  
  .create-wizard-content {
    padding: 25px;
  }
  
  .create-step-title {
    font-size: 20px;
  }
  
  .create-radio-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .create-wizard-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .create-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .create-sponsor-selection {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 3px solid var(--color-border);
    padding-top: 15px;
  }
}

/* Create Wizard Step 3 - Documents Styles */
.create-documents-section {
  margin-bottom: 30px;
}

.create-upload-area {
  margin: 20px 0 30px 0;
}

.create-upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  background-color: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.create-upload-zone:hover {
  border-color: var(--color-primary);
  background-color: var(--color-surface);
}

.create-upload-icon {
  font-size: 48px;
  color: var(--color-border);
  margin-bottom: 15px;
}

.create-upload-text {
  font-size: 16px;
  color: #666;
  margin: 0 0 20px 0;
}

.create-upload-input {
  display: none;
}

.create-upload-button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.create-upload-button:hover {
  background: #009aa3;
}

.create-upload-button i {
  margin-right: 8px;
}

/* Create Documents Table Styles */
.create-documents-list-section {
  margin-top: 30px;
}

.create-documents-table-container {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.create-documents-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.create-documents-table thead {
  background: var(--color-surface);
}

.create-documents-table th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--color-border);
}

.create-documents-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #eee;
  color: var(--color-text);
  font-size: 14px;
}

.create-documents-table tbody tr:hover {
  background-color: #f9f9f9;
}

.create-no-data {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 40px !important;
}

.create-document-actions {
  display: flex;
  gap: 8px;
}

.create-action-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.create-action-btn:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
}

.create-action-btn.download {
  color: var(--color-primary);
}

.create-action-btn.delete {
  color: #dc3545;
}

.create-action-btn.delete:hover {
  background: #f8d7da;
  border-color: #dc3545;
}

/* Responsive adjustments for documents section */
@media (max-width: 768px) {
  .create-upload-zone {
    padding: 30px 20px;
  }
  
  .create-upload-icon {
    font-size: 36px;
  }
  
  .create-upload-text {
    font-size: 14px;
  }
  
  .create-documents-table {
    font-size: 12px;
  }
  
  .create-documents-table th,
  .create-documents-table td {
    padding: 10px 8px;
  }
}