:root {
  --app-color-primary: #2563eb;
  --app-color-primary-soft: #eff6ff;
  --app-color-primary-soft-hover: #dbeafe;
  --app-color-success: #15803d;
  --app-color-success-soft: #f0fdf4;
  --app-color-danger: #dc2626;
  --app-color-danger-soft: #fef2f2;
  --app-color-border: #e5eaf3;
  --app-color-border-strong: #dbe2ec;
  --app-color-surface: #ffffff;
  --app-color-surface-soft: #f8fafc;
  --app-color-text: #334155;
  --app-color-text-muted: #64748b;
  --app-radius-pill: 999px;
  --app-radius-md: 0.8rem;
  --app-radius-lg: 0.9rem;
}

.bg-gradient-primary{background-color:#1c3faa;background-image:linear-gradient(180deg,#1c3faa 10%,#224abe 100%);background-size:cover}

.bg-login-image {
    background: url(https://www.qitaifu.com/wp-content/uploads/2020/12/in_tab2.jpg);
    background-position: center;
    background-size: cover;
}

.btn-primary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}
.btn-success {
  color: #fff;
  background-color: #28a745;
  border-color: #28a745;
}
.btn-danger {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}
.btn-info {
  color: #fff;
  background-color: #17a2b8;
  border-color: #17a2b8;
}

.files input {
  outline: 2px dashed #92b0b3;
  outline-offset: -10px;
  -webkit-transition: outline-offset .15s ease-in-out, background-color .15s linear;
  transition: outline-offset .15s ease-in-out, background-color .15s linear;
  padding: 25px 0px 55px 5%;
  text-align: center !important;
  margin: 0;
  width: 100% !important;
}
.files input:focus{     outline: 2px dashed #92b0b3;  outline-offset: -10px;
  -webkit-transition: outline-offset .15s ease-in-out, background-color .15s linear;
  transition: outline-offset .15s ease-in-out, background-color .15s linear; border:1px solid #92b0b3;
}
.files{ position:relative}
.files:after {  pointer-events: none;
  position: absolute;
  top: 60px;
  left: 0;
  width: 50px;
  right: 0;
  height: 56px;
  content: "";
  display: block;
  margin: 0 auto;
  background-size: 100%;
  background-repeat: no-repeat;
}
.color input{ background-color:#f1f1f1;}
.files:before {
  position: absolute;
  bottom: 29px;
  left: 55px;  pointer-events: none;
  width: 84px;
  right: 0;
  height: 24px;
  content: var(--content-var);
  display: block;
  margin: 0 auto;
  color: #2b91ff;
  font-weight: 600;
  text-transform: capitalize;
  text-align: center;
  background: #ffffff;
}

.alert-error {
  color: #78261f;
  background-color: #fadbd8;
  border-color: #f8ccc8
}
.popover .popover-arrow {
  position: absolute;
  display: block;
  width: 1rem; 
  height: 0.5rem; 
}

.popover .popover-arrow::before,
.popover .popover-arrow::after {
  position: absolute;
  display: block;
  content: "";
  border-color: transparent;
  border-style: solid;
}

.bs-popover-top > .popover-arrow {
  bottom: -0.5rem;
}

.bs-popover-top > .popover-arrow::before {
  bottom: 0;
  border-width: 0.5rem 0.5rem 0;
  border-top-color:  rgba(0,0,0,.2); 
}

.bs-popover-top > .popover-arrow::after {
  bottom: 1px; 
  border-width: 0.5rem 0.5rem 0;
  border-top-color: #fff; 
}

.bs-popover-end > .popover-arrow {
  left: -0.5rem;
  width: 0.5rem;
  height: 1rem;
}

.bs-popover-end > .popover-arrow::before {
  left: 0;
  border-width: 0.5rem 0.5rem 0.5rem 0;
  border-right-color:  rgba(0,0,0,.2); 
}

.bs-popover-end > .popover-arrow::after {
  left: 1px;
  border-width: 0.5rem 0.5rem 0.5rem 0;
  border-right-color: #fff;
}

.bs-popover-bottom > .popover-arrow {
  top: -0.5rem;
}

.bs-popover-bottom > .popover-arrow::before {
  top: 0;
  border-width: 0 0.5rem 0.5rem 0.5rem;
  border-bottom-color:  rgba(0,0,0,.2); 
}

.bs-popover-bottom > .popover-arrow::after {
  top: 1px;
  border-width: 0 0.5rem 0.5rem 0.5rem;
  border-bottom-color: #fff;
}

.bs-popover-start > .popover-arrow {
  right: -0.5rem;
  width: 0.5rem;
  height: 1rem;
}

.bs-popover-start > .popover-arrow::before {
  right: 0;
  border-width: 0.5rem 0 0.5rem 0.5rem;
  border-left-color: rgba(0,0,0,.2);
}

.bs-popover-start > .popover-arrow::after {
  right: 1px;
  border-width: 0.5rem 0 0.5rem 0.5rem;
  border-left-color: #fff; 
}

.badge-outline {
  color: #4e73df;
  border: 1px solid #999;
  background-color: transparent;
}

.truncate {
  max-height: 6.1rem;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.btn-group {
  display: inline-flex;
}

.btn-group .btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-group .btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
}

.upload-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin-bottom: 0.45rem;
  padding: 0.38rem 0.5rem;
  border: 1px solid #e6ebf2;
  border-radius: var(--app-radius-md);
  background: var(--app-color-surface);
}

.upload-field-label {
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.upload-field-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.upload-action-group {
  display: inline-flex;
  align-items: stretch;
  gap: 0.35rem;
}

.upload-action-group > * + * {
  border-left: none;
}

.upload-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  padding: 0.12rem 0.55rem !important;
  border: 1px solid var(--app-color-border-strong) !important;
  border-radius: var(--app-radius-pill) !important;
  background: var(--app-color-surface);
  color: #475569;
  box-shadow: none;
  font-size: 0.74rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.upload-action-group .upload-action-btn {
  border-radius: var(--app-radius-pill) !important;
}

.upload-action-btn:hover,
.upload-action-btn:focus {
  background: var(--app-color-surface-soft);
  color: #2e59d9;
  border-color: #c7d2e3 !important;
  text-decoration: none;
}

.upload-action-btn-primary {
  color: var(--app-color-primary);
  background: var(--app-color-primary-soft);
  border-color: #bfdbfe !important;
}

.upload-action-btn-danger {
  color: var(--app-color-danger);
  background: var(--app-color-danger-soft);
  border-color: #fecaca !important;
}

.upload-action-icon {
  min-width: 1.95rem;
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
}

.upload-field-status,
.upload-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  min-width: 0;
}

.upload-file-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.14rem 0.38rem 0.14rem 0.48rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--app-radius-pill);
  background: var(--app-color-surface-soft);
}

.upload-file-link {
  max-width: 19rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--app-color-primary);
  font-size: 0.74rem;
}

.upload-delete-btn {
  color: var(--app-color-text-muted);
}

.upload-delete-btn:hover {
  color: var(--app-color-danger);
}

.upload-field-empty {
  color: #94a3b8;
  font-size: 0.74rem;
}

.u-hidden {
  display: none !important;
}

.u-icon-15 {
  width: 15px;
}

.u-icon-watermark {
  font-size: 5rem;
  position: absolute;
  top: 30px;
  right: 10px;
}

.u-card-body-compact {
  font-size: 0.8rem;
  line-height: 1.2;
}

.u-inline-badge-gap {
  margin-left: 1px;
}

.u-btn-text-xs {
  font-size: 0.7rem;
}

@media (max-width: 991px) {
  .upload-field,
  .upload-field-multi {
    grid-template-columns: minmax(0, 1fr);
  }

  .upload-field-actions {
    justify-content: flex-start;
  }

  .upload-field-multi .toggleButton {
    grid-column: auto;
  }
}

#bookTable td,
#bookTable th {
  padding: 0.75rem;
  vertical-align: middle;
  text-align: left;
}

.company-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.company-list-toolbar h1 {
  margin-bottom: 0;
}
