textarea:focus, input:focus{
    outline: none;
}


*:focus {
    outline: none;
}


*{
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif!important;
}




html, body{
    height: 100%;
    width: 100%;
    scroll-behavior: smooth; 
    background: var(--light_grey);

    padding: 0px;
    
    
}

a{
    text-decoration: none;
}


ul {
    list-style: none;
  }

h1{
    color: #141414;
    font-size: 18px;
    margin-bottom: 10px;
}

h2{
    color: #006CF0;
    font-size: 18px;
    margin-bottom: 20px;
}

h5 {
  margin: 0 0 0.75rem 0;
  color: #333;
  font-size: 0.95rem;
  font-weight: 600;
}


p{

font-weight: 400;
font-size: 14px;
line-height: 20px;
letter-spacing: 0%;
color: #525252;
margin-bottom: 10px;
}  
  
  
  
  
.hidden{
    display: none!important;
}
  
  
  
  
    
  
  
  .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
  }
  
  .error {
    background-color: #fee;
    border: 1px solid #fcc;
    padding: 1rem;
    border-radius: 4px;
    color: #c33;
    margin-bottom: 1rem;
  }
  
  .success {
    background-color: #efe;
    border: 1px solid #cfc;
    padding: 1rem;
    border-radius: 4px;
    color: #363;
    margin-bottom: 1rem;
  }
  
  .company-section {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 2rem;
  }
  
  .form-section {
    background-color: #f0f8ff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #b0d4ff;
    margin-bottom: 2rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
  }
  
  .form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
  }
  
  .form-group input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
  }
  
  .form-group input.error {
    border-color: #f66;
  }
  
  .submit-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s;
  }
  
  .submit-btn:hover:not(:disabled) {
    background-color: #218838;
  }
  
  .submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }
  
  .deals-section {
    background-color: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
  }
  
  .deals-list, .deployment_list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .deal-item {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
  }


  .deal-item.selected {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
  /* Add any other styling you want for selected items */
}

  
  .deal-item h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
  }
  
  .deal-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
  }
  
  .deal-id, .deal-amount, .deal-date {
    background-color: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
  }
  
  .no-deals {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
  }
  
  .loading {
    text-align: center;
    padding: 2rem;
    color: #666;
  }
  
  h1, h2, h3 {
    color: #333;
  }
  
  h3 {
    margin-bottom: 1.5rem;
  }
  
  .reload-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: background-color 0.2s;
  }
  
  .reload-btn:hover:not(:disabled) {
    background-color: #0052a3;
  }
  
  .reload-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }
  
  /* New popup button styles */
  .popup-btn {
    background-color: #6f42c1;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    margin-left: 1rem;
    transition: background-color 0.2s;
  }
  
  .popup-btn:hover {
    background-color: #5a379a;
  }
  
  /* Modal styles */
  .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .modal {
    background: white;
    padding: 0;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
  }
  
  .modal-header h2 {
    margin: 0;
    color: #333;
  }
  
  .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .close-btn:hover {
    color: #333;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
  
  .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    text-align: right;
  }
  
  .modal-close-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .modal-close-btn:hover {
    background-color: #5a6268;
  }
  
  .popup-deal-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
  }
  
  .popup-deal-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
  }
  
  .popup-deal-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
  }



/*Licences*/




.license_list {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #28a745;
}



.license-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: white;
  border-radius: 3px;
  border: 1px solid #e0e0e0;
  font-size: 0.85rem;
}

.license-name {
  font-weight: 600;
  color: #28a745;
}

.license-id, .license-date {
  color: #666;
  font-size: 0.8rem;
}

.no-licenses {
  font-style: italic;
  color: #666;
  margin: 0;
  font-size: 0.85rem;
}


.button_row{
    display: flex;
    margin-top: 20px;
    justify-content: flex-end;

}





.deal-item.unavailable {
  opacity: 0.6;
  background-color: #f8f9fa;
  cursor: not-allowed;
  border-left: 4px solid #dc3545;
}

.deal-item.unavailable:hover {
  background-color: #f8f9fa;
}

.unavailable-badge {
  background-color: #dc3545;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.quantity-info {
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
}

.quantity-info.available {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.quantity-info.total {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.quantity-info.used {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.quantity-breakdown {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid #6c757d;
}

.quantity-breakdown h4 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1rem;
}

.breakdown-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background-color: white;
  border-radius: 3px;
  border: 1px solid #e0e0e0;
  font-size: 0.85rem;
}

.breakdown-row.fully-used {
  background-color: #f8f9fa;
  opacity: 0.7;
}

.item-name {
  font-weight: 600;
  color: #333;
}

.quantity-stats {
  color: #666;
}

.available-count {
  font-weight: 600;
  color: #28a745;
}

.total-count {
  color: #6c757d;
}

.popup-info {
  background-color: #e3f2fd;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #2196f3;
}

.popup-info p {
  margin: 0;
  font-weight: 600;
  color: #1976d2;
}

.no-available-items {
  text-align: center;
  padding: 2rem;
  background-color: #fff3cd;
  border-radius: 4px;
  border: 1px solid #ffeaa7;
}

.info-text {
  color: #856404;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.action-button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s;
}

.action-button:hover:not(:disabled) {
  background-color: #218838;
}

.action-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}



.license-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 5px;
  border-radius: 4px;
}

.license-content {
  flex: 1;
}

.license-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 5px;
  border-radius: 4px;
}

.license-content {
  flex: 1;
}

.remove-license-btn {
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 10px;
}



.delete-license-btn {
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 15px;
  width: auto;
  height: 24px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 10px;
}

.remove-license-btn:hover, .delete-license-btn:hover {
  background: #cc0000;
}

.small-modal {
  max-width: 400px;
}

.remove-btn {
  background: #ff4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.remove-btn:hover {
  background: #cc0000;
}

.remove-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}


/*table*/



          .license_data{
            width: 100%;
          }

          .license_data th{
            font-size: 14px;
            padding: 5px;
            font-weight: 600;
            text-transform: uppercase;
            text-align: left;
          }

          .license_data td{
            font-size: 16px;
            padding: 5px;
          }


/*Search*/

.deployment_header{
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}



/*deployemnt filter*/

.deployment_header_left{
    display: flex;
    gap: 40px;
}


.filter-container {
  display: inline-block;
  margin-right: 10px;
}

.stage-filter {
  padding: 8px 12px;
  border: 1px solid #cbd6e2;
  border-radius: 8px;
  font-size: 14px;
  background-color: #ffffff;
  cursor: pointer;
  min-width: 150px;
}

.stage-filter:focus {
  outline: none;
  border-color: #0091ae;
}



.search-input{
  padding: 5px 10px;
  border: solid 1px grey;
}


/*deployment*/

.deployment_item_header{
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 20px;
}

.deployment_name{
  margin-top: 5px;
}


/*Stage Pill*/

.stage_pill{
  background: rgb(121, 124, 121);
  padding: 8px 12px;
  border-radius: 15px;
  color: white;
  width: auto;
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}


/*Deployment Stages*/

.stage_new{
  background: rgb(139, 131, 58);

  

}

.stage_active, .stage_activated{
  background: rgb(57, 168, 57);
}

.stage_to_be_deactivated{
  background: rgb(168, 57, 57);
}

.stage_deactivated{
  background: rgb(168, 57, 57);
}

.stage_on_pause{
  background: rgb(57, 133, 168);
}


/*Multiple deployment selection*/


.select-all-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
  }


  .deployment-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
  }
  
  .deployment-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
  }
  
  .deal-item {
    position: relative;
    padding-left: 40px; /* Add space for the checkbox */
  }
  
  .select-all-container {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
  }
  
  .selected-count {
    margin-left: 10px;
    font-weight: bold;
    color: #007bff;
  }
  
  .deal-item.selected {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
  }




  /*Distributed licences output stuff*/



/* License Distribution Styles */
.dis_licenses_output {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  max-height: 400px;
  overflow-y: auto;
}

.distribution-placeholder {
  text-align: center;
  color: #6c757d;
  font-style: italic;
  padding: 20px;
}

.distribution-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 12px;
  color: #721c24;
}

.distribution-error h5 {
  margin: 0 0 8px 0;
  color: #721c24;
}

.error-list {
  margin: 8px 0 0 20px;
  padding: 0;
}

.error-list li {
  margin-bottom: 4px;
}

.shortage {
  color: #dc3545;
  font-weight: bold;
}

.distribution-success {
  background: #d1edff;
  border: 1px solid #bee5eb;
  border-radius: 6px;
  padding: 12px;
  color: #0c5460;
}

.distribution-success h5 {
  margin: 0 0 12px 0;
  color: #0c5460;
}

.distribution-summary {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.summary-label {
  font-weight: 600;
}

.summary-value {
  background: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: bold;
  color: #0c5460;
}

.line-item-distribution {
  margin-bottom: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  border-left: 4px solid #17a2b8;
}

.line-item-distribution h6 {
  margin: 0 0 8px 0;
  color: #0c5460;
  font-weight: 600;
}

.distribution-info {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.info-pill {
  background: #e9ecef;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: #495057;
}

.info-pill.remaining {
  background: #d4edda;
  color: #155724;
}

.info-pill.extra {
  background: #fff3cd;
  color: #856404;
}

.deployment-allocations {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.deployment-allocation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

.deployment-name {
  font-weight: 500;
  color: #495057;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.license-count {
  background: #17a2b8;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
}

.action-button.error {
  background-color: #dc3545;
  cursor: not-allowed;
}

.action-button.error:hover {
  background-color: #dc3545;
}


/*Channels*/

.popup_channel_section {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.popup_channel_section h3 {
  margin: 0 0 15px 0;
  color: #495057;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding: 5px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.channel-item:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.channel-item.selected {
  background: #d1ecf1;
  border-color: #17a2b8;
  color: #0c5460;
}

.channel-item input[type="checkbox"] {
  margin: 0;
}

.channel-label {
  flex: 1;
  font-weight: 500;
}

.selected-channels-preview {
  margin-top: 15px;
  padding: 10px;
  background: #e8f4f8;
  border-radius: 6px;
  border-left: 4px solid #17a2b8;
}

.selected-channels-preview h4 {
  margin: 0 0 8px 0;
  color: #0c5460;
  font-size: 14px;
}

.selected-channels-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.channel-tag {
  background: #17a2b8;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.no-channels {
  text-align: center;
  color: #6c757d;
  font-style: italic;
  margin: 20px 0;
}

/*Channel on deployments*/

/* Add these styles for the deployment channel visualization */

.channel_section {
  margin: 15px 0;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.channel_section h5 {
  margin: 0 0 10px 0;
  color: #495057;
  font-size: 16px;
}

.channel_section h6 {
  margin: 0 0 8px 0;
  color: #6c757d;
  font-size: 14px;
  font-weight: 600;
}

.planned-channels {
  margin-bottom: 15px;
}

.existing-channels {
  padding-top: 10px;
  border-top: 1px solid #e9ecef;
}

.channel-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.channel-tag {
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.channel-tag.planned {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.channel-tag.active {
  background: #d4edda;
  color: #155724;
  border: 1px solid #b8daff;
}

.no-planned-channels,
.no-active-channels {
  color: #6c757d;
  font-style: italic;
  margin: 5px 0;
  font-size: 14px;
}

/* Add some visual distinction for deployments that have planned channels */
.deal-item.selected .channel_section .planned-channels {
  background: rgba(23, 162, 184, 0.1);
  padding: 8px;
  border-radius: 4px;
  border-left: 3px solid #17a2b8;
}


/*Sumamry Badge*/

.channel-distribution-summary {
  margin-top: 8px;
}

.summary-badge {
  background: #e8f4f8;
  color: #0c5460;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #bee5eb;
}

.summary-badge.planning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
  margin-left: 8px;
}


/*Assigned Channels*/

.assigned-channels {
  margin-bottom: 10px;
}

.channel-tag.assigned {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.channel-tag.planned {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* Add some spacing between assigned and planned sections */
.planned-channels {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #dee2e6;
}


/*Inline Editing*/


.url-input {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
}

.url-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.url-input:disabled {
  background-color: #f8f9fa;
  cursor: not-allowed;
}

.url-display {
  cursor: pointer;
  padding: 4px 5px 4px 5px;
  border-radius: 4px;
  min-height: 20px;
  width: 100%;
  display: block;
  max-width: 200px; 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  color: #007bff;
  
}

.url-display:hover {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}

.url-display:empty::before {
  content: "Click to add URL";
  color: #6c757d;
  font-style: italic;
}

.updating-indicator {
  font-size: 12px;
  color: #6c757d;
  margin-left: 8px;
}