html { 
  font-size: 100%; 
}
body {
  font-family: Arial, sans-serif;
  background-color: #f4f6f9;
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: #eef;
  border-radius: 12px;
  box-shadow: 1px 1px 15px rgba(0,0,0,0.1);
  margin-bottom: 35px;
}
.user-left {
  font-size: 24px;
  font-family: monospace;
  font-weight: bold;
}
.company-center {
  flex: 1;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #222;
}
#logoutBtn {
  background-color: #d9534f;
  color: white;
  font-size: 24px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
#logoutBtn:hover { background-color: #c9302c; }
.section-title {
  margin: 20px 0;
  font-size: 24px;
  color: #333;
  text-align: center;
  font-weight: bold;
}
.date-bar {
  background-color: #f2f2ff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.05);
  font-size: 14px;
}

input[readonly],
textarea[readonly],
select[disabled] {
  background-color: #e9ecef !important;
  color: #6c757d !important;
  cursor: not-allowed;
}

#btn {
  margin-right: 10px;
  padding: 6px 12px;
}

.selected {
  background-color: #d3f0ff;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
#loadingSpinner {
  display: none;
  text-align: center;
  margin: 20px 0;
}

.select2-container--default .select2-results__option {
  white-space: normal !important;
  word-break: break-word !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
  .select2-container {
  min-width: unset !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: #e9ecef !important;
  color: #6c757d !important;
  cursor: not-allowed !important;
}

.future-desc-input,
.future-desc-input.preview-mode {
  display: block;
  width: 100%;
  height: 28px;
  line-height: 20px;
  padding: 4px;
  font-family: monospace;
  font-size: 14px;
  color: #212529;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff; 
  box-sizing: border-box;
  cursor: pointer !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.future-desc-input.preview-mode {
  background-color: #e9ecef;
}

.future-desc-input.preview-mode .future-desc-preview {
  display: inline;
  vertical-align: middle;
  white-space: nowrap;
}

.future-desc-input.preview-mode .future-desc-preview p,
.future-desc-input.preview-mode .future-desc-preview div,
.future-desc-input.preview-mode .future-desc-preview br {
  display: inline;
  margin: 0;
  padding: 0;
}

.future-desc-input.preview-mode .future-desc-preview br {
  display: none;
}

.future-desc-input.preview-mode .future-desc-preview img {
  height: 18px; 
  width: auto;
  vertical-align: middle;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: #e9ecef !important;
  color: #6c757d !important;
  cursor: not-allowed !important;
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .company-center {
    font-size: 18px;
    text-align: left;
  }

  .user-left {
    font-size: 16px;
  }

  #logoutBtn {
    font-size: 14px;
    padding: 4px 8px;
  }

  .date-bar {
    padding: 10px;
    font-size: 13px;
  }

  .section-title {
    font-size: 16px;
  }

  
  #btn {
    margin: 6px 4px;
    padding: 4px 10px;
    font-size: 14px;
  }

  .select2-container--default .select2-selection--single {
    height: auto !important;
    font-size: 14px !important;
  }

  .select2-selection__rendered {
    font-size: 14px !important;
  }

  .select2-container--default .select2-results__option {
    font-size: 14px !important;
  }
}

.submit-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

#fsubmitBtn {
  padding: 10px 24px;
  font-size: 16px;
  background-color: #28a745;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}

#fsubmitBtn:hover {
  background-color: #218838;
}

p{
  margin-top: 0px;
}

#addrBlock {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

#addrBlock .addr-line {
  width: 100%;
  box-sizing: border-box;
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: monospace;
}

.preview-mode,
#addrBlock .addr-line[readonly] {
  background-color: #e9ecef !important;
  color: #6c757d !important;
  cursor: not-allowed !important;
}
.swal2-popup .swal2-html-container {
  text-align: left !important;
}
.swal2-popup .note-editor .note-editable {
  text-align: left !important;
  direction: ltr !important;
}