#top-left-logo {
    width: 10vw;
}

.page-header-text{
    color: white !important;
}

.center-elements {
    margin: auto;
    width: 90%;
    margin-top: 2vw;
}

.top-items {
    width: 100%;
    margin-bottom: 1vw;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.dot {
    display:  inline-block;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    margin:  0 2px;
}

.dot.dot-success {
    background-color: #3cf73c;
}

.dot.dot-warning {
    background-color: #ffd94f;
}

.invoice-name {
    width: 70%;
}

.table-15-pct {
    width: 15%
}

.table-20-pct {
    width: 20%
}

.table-30-pct {
    width: 30%
}

.table-50-pct {
    width: 50%
}

.table-100-pct {
    width: 100%
}

#user-summary-table{
    position: relative;
    padding: 16px;
    border-bottom: 1px solid #dddddd
}

#summary-table{
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 0 5px;
    overflow: hidden;
    margin: 0 auto;
    text-align: center;
}

progress::-webkit-progress-value {
    border-radius: 10px;
}

.progress-blue::-webkit-progress-value{
    background-color: #007bff;
}

.progress-orange::-webkit-progress-value{
    background-color: orange;
}

.progress-red::-webkit-progress-value{
    background-color: red;
}

progress::-webkit-progress-bar {
    background-color: white;
    border-radius: 10px;
    border: 1px solid grey;
}

.tables tfoot{
    font-weight:bold;
}

.tables thead{
    background-color: #343a40 !important;
    color: #ffffff;
}

.tables tbody tr{
    border-bottom: 1px solid #dddddd;
}

.tables tbody tr:nth-of-type(even){
    background-color: #f3f3f3;
}

.tables td, th{
    padding: 5px 15px;
}

.week-table{
    position:relative;
    margin-top: 3vw;
    width: 100%;
    margin-bottom:2vw;
}

#div-select-month{
    position: relative;
    padding: 16px;
}

.icon-gen-color{
    color: #1990ff;
}

.project-select{
    border-radius: 2px;
    height: 30px;
}

.week-dropdown{
    position:relative;
    padding: 16px;
    width: 100%;
}

.accordion-btn{
    background: #343a40 !important;
    color: white;
    text-align: center;
    border-radius: 5px;
    padding: 10px;
}

.dropdown-card{
    margin-bottom: 10px;
}

.management-summary-tables{
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 0 5px;
    overflow: hidden;
}

#div-user-table{
    margin-top:10px;
}

#temporary-send-button{
    margin-top: 30px;
}

#form-elements{
    margin-top: 10vw;
    width: 20vw;
}

.login-form-elem{
    margin:5px;
}

#login-form{
    width: 100%;
}

.text-input{
    width: 100%;
}

.login-form-button{
    cursor: pointer;
}

.generic-form-button{
    border-radius: 3px;
    background-color: #343a40!important;
    color: white;
    margin: 10px;
    cursor: pointer;
}

.hash-generator-elem{
    margin:5px;
}

.management-section{
    border-radius: 4px;
    padding: 16px;
    border-bottom: 1px solid #dddddd
}

.logout-btn{
    background: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 3px;
    cursor: pointer;
}

#username-placeholder{
    color: white;
    margin-right: 10px;
    font-weight: bold;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

#submit-file-btn{
    display: flex;
    float: right;
}

#form-left-and-right-elems{
    display: flex;
}
#form-left-and-right-elems-update{
    display: flex;
}

.form-column{
    width: 50%;
    margin: 10px;
}
#form-container {
    max-width: 800px;
    margin: 0 auto;
}
.form-control {
    display: block;
    width: 95% !important;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.form-group {
    margin-bottom: 10px;
}

.form-column-outbound {
    flex: 1;
    margin-left: 0px;
    margin-right: -16px;
}
div#form-right-elems .form-group{
    margin-left: 15px
}
#form-top-elems {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px
}

#form-top-elems .form-group {
    flex: 0 0 calc(50% - 12px);
    margin-right: 12px;
    margin-bottom: 15px;
}

#form-top-elems .form-group:nth-child(2n) {
    margin-right: 0;
}

.calendar {
        font-family: Arial, sans-serif;
    }

    .calendar-header {
        text-align: center;
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .calendar-table {
        width: 100%;
        height: 50rem;
        border-collapse: collapse;
    }

    .calendar-table th, .calendar-table td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: center;
    }

    .calendar-table th {
        background-color: #f2f2f2;
    }
    .half-filled {
        position: relative;
    }

    .half-filled::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        background-color: #296eae;
        z-index: -1;
    }

    .holidays{
        background-color: #85f18a;
    }

    .sickness{
        background-color: #fac25d;
    }

    #openModalBtn {
      font-size: 14px;
      padding: 5px 10px;
      margin-left: 10px;
    }
    .filled {
        color: white;
        background-color: #296eae;
    }

    .festive {
        background-color: #559861;
        pointer-events: none;
        color: white;
    }


    .festive-half {
      background: conic-gradient(transparent 50%, #ffc107 0);
    }

    .festive-full {
      background-color: #ffc107;
    }

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

    .modal-body table td {
      border: 1px solid #ddd;
      padding: 10px;
      text-align: center;
      cursor: pointer;
    }

    .modal-body table td:empty {
      visibility: hidden;
    }
    .week-end {
      background-color: #ccc;
      pointer-events: none;
    }
    .modal-body table td.disabled {
      background-color: #ccc;
    }
    .menu-button {
    background-color: #6c757d;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

hr {
    width: 100%;
    border: 1px solid #ddd;
}

button#edit-save-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 32px 2px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 15px
}

button#edit-save-button:hover {
    background-color: #0062cc;
}

#added-rows-container {
    margin-top: 20px;
}

#added-rows {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#added-rows th, #added-rows td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#added-rows th {
    background-color: #f2f2f2;
}

#added-rows button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    margin: 2px;
    cursor: pointer;
    border-radius: 3px;
}

#added-rows button:hover {
    background-color: #45a049;
}

.table button.edit {
    background-color: #007bff;
}

.table button.edit:hover {
    background-color: #0056b3;
}

.table button.delete {
    background-color: #dc3545;
}

.table button.delete:hover {
    background-color: #c82333;
}
#observation-fields{
    margin: 0px !important
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

#save-timesheet-btn{
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #343a40!important;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    float: right;
}

#approve-timesheet-btn{
    margin-left: 10px;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #343a40!important;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    float: right;
}

.generic-btn{
    background-color: #343a40!important;
    color: white !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/****** RESPONSIVE ****/
@media screen and (max-width: 800px) {
    #form-elements{
        width: 60vw;
    }

    #generate-password-elems{
        flex-direction: column;

    }

    #top-left-logo{
        width:8vw;
    }
}

/**GANTT STUFF**/
.gantt_section_custom {
  padding: 20px;
  font-family: 'Arial', sans-serif;
  color: #333;
  margin-top: -410px !important;
}
div.gantt_section_time {
  margin-top: 360px !important;
}
.custom_row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.custom_form_group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 15px;
}

.custom_label {
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

.custom_input,
.custom_selectable {
  width: 100%;
  font-size: 14px;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.custom_input{
  padding: 4px 8px !important;
}
.custom_selectable{
  padding: 5px 5px !important;
}

.custom_input::placeholder {
  color: #aaa;
  font-size: 13px;
}

.custom_input:focus,
.custom_select:focus {
  border-color: #007BFF;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
  outline: none;
}

.custom_select {
  appearance: none;
  background: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path fill="none" stroke="%23333" stroke-width="1.5" d="M1 1l4 4 4-4"/></svg>') no-repeat right 10px center;
  background-color: #fff;
  background-size: 10px 6px;
  padding-right: 30px;
  cursor: pointer;
}

.gantt_cal_lsection{
display:none
}

.gantt_cal_ltext{
display:none
}

.gantt_cal_larea {
    height:435px !important
}

.fa-add:before, .fa-plus:before {
    content: "" !important;
}

.gantt_section_time{
height: 50px !important
}

.gantt_time_selects {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  font-family: 'Arial', sans-serif;
}

.gantt_time_selects select {
  padding: 10px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #f9f9f9;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gantt_time_selects select:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.gantt_time_selects select:focus {
  border-color: #0056b3;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.gantt_time_selects select option {
  padding: 10px;
}

.gantt_section_time .gantt_time_selects{
    margin-left: 10px !important
}

.gantt_duration {
    display: flex;
    height: 20px !important;
    align-items: center;
    margin-top: 23px !important;
    font-family: Arial, sans-serif;
}

.gantt_duration input[type="button"] {
    background-color: #3db9d3;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 30px;
    width: 40px;
    height: 20px;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-top: 0px;
    line-height: 0;
}

.gantt_duration input[type="text"] {
    height: 23px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    padding: 5px;
    margin: 0 10px;
}

.gantt_duration span {
    margin-left: 30px;
    font-size: 14px;
    color: #555;
}

div.gantt_cal_ltitle{
cursor: move !important
}

.custom_textarea {
  width: 100%;
  height: 70px;
  padding: 10px 12px;
  font-size: 14px;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.custom_input::placeholder,
.custom_textarea::placeholder {
  color: #aaa;
  font-size: 13px;
}

.custom_input:focus,
.custom_textarea:focus,
.custom_selectable:focus {
  border-color: #007BFF;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
  outline: none;
}

.description_section {
  margin-top: 10px;
}

.gantt_cal_ltitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


.gantt_cal_ltitle .gantt_time {
    font-weight: bold;
    margin-right: auto;
}


.gantt_cal_light {
    height: 515px !important;

}

.gantt_grid {
  height: inherit;
  width: inherit;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gantt_grid_scale {
  width: inherit;
  height: 35px;
  line-height: 34px;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #0056b3;
}

.gantt_grid_head_cell {
  text-align: center;
  padding: 0 10px;
  border-right: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gantt_grid_head_cell:last-child {
  border-right: none;
}

.gantt_grid_data {
  width: inherit;
  height: 347px;
  overflow-y: auto;
  background-color: #fff;
}

.gantt_row {
  display: flex;
  align-items: center;
  height: 35px;
  line-height: 35px;
  position: relative;
  background-color: #fff;
  transition: background-color 0.3s;
}

.gantt_row:nth-child(odd) {
  background-color: #f7f7f7;
}

.gantt_row:hover {
  background-color: #f1f1f1;
}

.gantt_cell {
  text-align: center;
  padding: 0 10px;
  border-right: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gantt_cell:last-child {
  border-right: none;
}

.gantt_tree_content {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt_layout_cell {
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
}

.gantt_task_scale {
  background-color: #007bff;
  color: white;
  font-weight: bold;
  height: 35px;
  line-height: 35px;
  text-align: center;
  border-bottom: 2px solid #0056b3;
}

.gantt_scale_cell {
  text-align: center;
  border-right: 1px solid #ddd;
  padding: 5px;
  color: white;
}

.gantt_scale_cell:last-child {
  border-right: none;
}

.gantt_data_area {
  background-color: #fff;
  border-top: 1px solid #ddd;
  overflow-y: auto;
}

.gantt_task_row {
  display: flex;
  align-items: center;
  height: 35px;
  line-height: 35px;
  background-color: #fff;
}

.gantt_task_row:nth-child(odd) {
  background-color: #f7f7f7;
}

.gantt_task_cell {
  text-align: center;
  padding: 0 10px;
  border-right: 1px solid #ddd;
}

.gantt_task_cell:last-child {
  border-right: none;
}

.gantt_scale_line{
    line-height: 25px !important
}

.filter-container {
    margin: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background-color: #f4f7fb;
    border-radius: 8px;
    padding: 10px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.filter-container label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-right: 10px;
}

.filter-container input {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 250px;
    transition: border-color 0.3s ease-in-out;
}

.filter-container input:focus {
    border-color: #5fa8d3;
    outline: none;
}

.filter-container input::placeholder {
    color: #999;
    font-style: italic;
}

.filter-container select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 250px;
    background-color: white;
    color: #333;
    appearance: none;
    transition: border-color 0.3s ease-in-out;
}

.filter-container select:focus {
    border-color: #3db9d3;
    outline: none;
}

.filter-container select option {
    padding: 8px 12px;
}

.filter-container select:focus::after {
    color: #999;
}

.gantt_grid_scale .gantt_grid_head_cell,
.gantt_scale_cell.gantt_last_cell,
.gantt_task .gantt_task_scale .gantt_scale_cell {
    color: black !important;
    font-weight: 700 !important;
}

#client-extra-information, #update-client-extra-information {
    margin: 0 auto;
    display: block;
    margin-left: 8px;
    height: 100px;
    margin-top: 20px
}
#filtrador-form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-icon {
    cursor: pointer;
    font-size: 24px;
    color: #007bff;
}
.reset-icon {
    cursor: pointer;
    font-size: 34px;
}
.reset-icon {
    color: red;
}

.filter-group {
  display: flex;
  align-items: center;
}


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

.filterBtn:hover {
  background-color: #45a049;
}

.filterCategory, .textFilter {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#loading-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    display: none; 
    z-index: 1000;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



.load-more {
    cursor: pointer;
    margin-bottom: 45px
}

div#gantt_here{
    height: 650px !important
}


.input-error {
    border: 2px solid red;
    background-color: #ffe6e6;
}

.input-success {
    border: 2px solid green;
    background-color: #e6ffe6;
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

.success-message {
    color: green;
    font-size: 12px;
    margin-top: 5px;
}

#prev-sprint-btn, #next-sprint-btn {
    font-size: 15px;
    cursor: pointer;
}


#formUpdateVars label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    font-size: 1rem;
}

.key-value-row{
    display: flex;
    width: 95%;
    margin-bottom: 10px;
}

/* Bootstrap extension classes for the invoice calculator */
.border-left-success {
    border-left: 4px solid #28a745 !important;
}

.border-left-warning {
    border-left: 4px solid #fd7e14 !important;
}

.border-left-danger {
    border-left: 4px solid #dc3545 !important;
}

.border-left-primary {
    border-left: 4px solid #007bff !important;
}

/* Force input-group and input-group-append to stay in one row for invoice name */
.input-group {
    flex-wrap: nowrap !important;
}
.input-group-append {
    display: flex !important;
}

/* Totals Cards Styles */
.totals-container {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.total-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 180px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.total-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.total-card h2 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

.total-card .amount {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 0.2rem;
    display: block;
}

/* Section Headers for Invoices - Compact Version */
.section-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    margin: 1.2rem 0 0.6rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.section-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
}

.section-totals {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.section-total-item {
    background: rgba(255,255,255,0.15);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.section-total-item .amount {
    font-weight: bold;
    font-size: 0.95rem;
}

/* Responsive adjustments for totals */
@media (max-width: 768px) {
    .totals-container {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .total-card {
        min-width: 160px;
        padding: 0.7rem 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    
    .section-totals {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    
    .section-total-item {
        width: 100%;
        text-align: center;
    }
}

/* Multiple Invoices Processing Styles */
.invoice-number-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
    max-height: 120px;
    overflow-y: auto;
}

.invoice-provider-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 15px;
    position: relative;
}

.invoice-provider-group:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background-color: #dee2e6;
}

.invoice-provider-separator {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.invoice-number-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s;
    height: 28px;
    min-width: 140px;
    max-width: 180px;
    text-align: left;
    position: relative;
    font-size: 0.85rem;
}

.invoice-number-btn .number {
    font-weight: bold;
    color: #495057;
    min-width: 22px;
    font-size: 0.8rem;
}

.invoice-number-btn .details {
    display: flex;
    gap: 6px;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}

.invoice-number-btn .provider {
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invoice-number-btn .amount {
    color: #28a745;
    font-weight: 500;
    margin-left: auto;
    font-size: 0.8rem;
}

.invoice-number-btn .error-text {
    color: #dc3545;
    font-size: 0.75rem;
}

.invoice-number-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.invoice-number-btn.processed {
    background: #d4edda;
    border-color: #c3e6cb;
    cursor: not-allowed;
    opacity: 0.8;
}

.invoice-number-btn.processed::after {
    content: '✓';
    position: absolute;
    top: -4px;
    right: -4px;
    background: #28a745;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.invoice-number-btn.has-error {
    background: #fff3f3;
    border-color: #dc3545;
}

.invoice-number-btn.has-error .number {
    color: #dc3545;
}

.invoice-number-btn.has-error:hover {
    background: #ffe6e6;
}

.invoice-number-btn.selected {
    background: #e7f1ff;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.invoice-number-btn.selected:hover {
    background: #e7f1ff;
}

#current-invoice-file {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #6c757d;
    word-break: break-all;
}

#current-invoice-file i {
    margin-right: 5px;
    color: #6c757d;
}

#current-invoice-file span {
    vertical-align: middle;
}

.modal-header div {
    flex: 1;
}
