
.dm-pdf-layout {
  display: flex;
  width: 100%;
  border: 1px solid #ccc;
  align-items: stretch;
}

.dm-pdf-list {
  width: 220px;
  flex: 0 0 220px;
  border-right: 1px solid #ddd;
  background: #f5f5f5;
}


.dm-pdf-list-title {
  background: #626161;
    color: #fff;
    padding: 9px;
    border-bottom: 1px solid #dddddd;
    line-height: 27px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}


.dm-pdf-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}



.dm-pdf-doc-btn {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 10px 12px;
  border-bottom: 1px solid #ccc;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

.dm-pdf-doc-btn.is-active ,
.dm-pdf-doc-btn:hover {
  background-color: #cf1820;
    color: #fff;
}

.dm-pdf-viewer {
  flex: 1 1 auto;
  min-width: 0;
}

.dm-pdf-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.dm-pdf-toolbar-left,
.dm-pdf-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dm-pdf-canvas-wrap {
  overflow: auto;
  width: 100%;
  height: calc(100vh - 150px);
  background: #f5f5f5;
  padding: 12px;
  box-sizing: border-box;
  cursor: grab;
}

.dm-pdf-canvas-wrap.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.dm-pdf-canvas {
  display: block;
  margin: 0 auto;
  background: #f5f5f5;
}

@media (max-width: 991px) {
  .dm-pdf-layout {
    flex-direction: column;
  }

  .dm-pdf-list {
    width: 100%;
    flex: 0 0 auto;
  }
}
.dm-pdf-viewer {
    width: 100%;
}

.dm-pdf-toolbar {
    background: #626161;
    padding: 9px;
    margin: 0;
    border-style: solid;
    color: #fff;
    border-color: #ccc;
    border-width: 0 0 0 1px;
}

span.dm-pdf-page-info {
    font-size: 14px;
    font-weight: 800;
}

button.dm-pdf-prev, 
button.dm-pdf-next {
    border: 1px solid #fff;
    background: #626161;
    border-radius: 100%;
    padding: 0;
    font-weight: 900;
    line-height: 25px;
    width: 27px;
    height: 27px;
}

button.dm-pdf-zoom-out,
button.dm-pdf-zoom-in{
    border: 1px solid #fff;
    background: #626161;
    border-radius: 100%;
    padding: 0;
    font-weight: 900;
    line-height: 25px;
    width: 27px;
    height: 27px;
}
button.dm-pdf-zoom-out:hover,
button.dm-pdf-zoom-in:hover,
button.dm-pdf-prev:hover, 
button.dm-pdf-next:hover,
button.dm-pdf-fit:hover{
    border: 1px solid #626161;
    background: #fff;
    color:#626161;
}
a.dm-pdf-download{
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    background: #cf1820;
    padding: 3px 17px;
    border-radius: 5px;
}
button.dm-pdf-fit {
    border: 1px solid #fff;
    background: #626161;
    padding: 0 18px;
    height: 27px;
    font-size: 14px;
    font-weight: 700;

}
.dm-pdf-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.88);
}

.dm-pdf-loading.is-hidden {
  display: none;
}

.dm-pdf-loading-box {
  width: min(320px, 90%);
  text-align: center;
}

.dm-pdf-loading-text {
  margin-bottom: 10px;
  font-weight: 600;
}

.dm-pdf-loading-progress {
  height: 10px;
  background: #e6e6e6;
  border-radius: 999px;
  overflow: hidden;
}

.dm-pdf-loading-bar {
  width: 0%;
  height: 100%;
  background: #246690;
  transition: width .2s ease;
}

.dm-pdf-loading-percent {
  margin-top: 8px;
  font-size: 14px;
}