#workArea{
	padding-bottom: 60px;
}
.gallery {
	display: flex;
	width:100%;
    margin-top: 20px;
	flex-wrap: wrap;
    gap:10px
}
.thumb {
    border-radius:3px;
    overflow:hidden;
    position:relative;
    border:1px solid var(--border-normal);
    background:var(--img-card-bg);
    box-shadow:0 2px 5px rgba(0,0,0,0.05);
    cursor:pointer;
    display:flex;
    flex-direction:column;
    align-items:center;
    align-self: center;
    width: calc(50% - 10px);
    padding: 10px 5px 0 5px;
	min-height: 250px;
}
.thumb:hover { border-color:#c00; }

@media (min-width:414px){
    .gallery {
        flex-direction: unset;
        flex-wrap:wrap;
    }
    .thumb {
        align-self:unset;
    }
}
@media (min-width:640px){
    .thumb {
        width:33.333333333333%;
        align-self:unset;
    }
}
@media (min-width:992px){
	.xLargeBtn span{
		display:block;
		font-size:14px;
	}
    .thumb {
        width: calc(50% - 15px);
        align-self:unset;
    }
}

.viewer-wrapper {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
}

/* A4 sayfa görünümü */
.a4-container {
    position: relative;
    background: #fff;
    box-shadow: 0 0px 10px var(--a4-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Dikey A4: 210 × 297 */
.a4-container.portrait {
    height: 86%;
    aspect-ratio: 210 / 297;
}

/* Yatay A4: 297 × 210 */
.a4-container.landscape {
    width: 86%;
    aspect-ratio: 297 / 210;
}

/* A4 margin çizgileri */
.a4-margins {
    position: absolute;
    inset: 1%;
    border: 1px dashed rgba(0,0,0,0.4);
    pointer-events: none;
}

/* A4 içindeki imaj */
.a4-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Demo butonları */
.controls {
    text-align: center;
    margin-top: 10px;
}

.controls button {
    padding: 6px 12px;
    margin: 0 5px;
    cursor: pointer;
}
.thumb .margin-guide {
  position: absolute;
  pointer-events: none;
  border: 1px dashed rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}
.thumb canvas {
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.controls {
  margin: 5px 0;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}


/* butonlar */
.actionBtns {
	position:absolute;
	top:10px;
	left:auto;
	right:5px;
}

button{
	display: flex;
    align-items: center;
    justify-content: center;
    outline: 0;
	-webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
	-ms-touch-action: manipulation;
	touch-action: manipulation;
    cursor: pointer;
	border: none;
}






.btn-normal{
	margin: 2px 0;
	padding: 5px;
	color: var(--input-color);
    border: var(--input-border) solid 1px;
    background-color: var(--input-bg);
}

.btn-lg{
	margin: 2px 0;
	padding: 8px;
	color: var(--input-color);
    border: var(--input-border) solid 1px;
    background-color: var(--input-bg);
}
.pageOrient .btn-lg{
	flex: 0 0 50%;
}
.pageOrient .btn-lg:first-child{
	border-radius: 3px 0 0 3px;
}
.pageOrient .btn-lg:last-child{
	border-radius:0 3px 3px 0;
}
.orientBtn{
	flex-direction: column;
}
.btn-lg.fitToPageBtn{
	display:flex;
	align-items: center;
	justify-content: center;
	width:100%;
	border-radius:3px;
}
.btn-lg.fitToPageBtn svg{
	margin-right:5px;
}

.btn-lg svg{
	fill:#999;
}
.btn-lg:not(.btn-active):hover{
	border-color: var(--input-border);
    color: var(--input-color);
}
.btn-lg:not(.btn-active):hover svg{
	fill:var(--input-color);
}
.btn-lg span{
	display:block;
	text-align:center;
}
.btn-active{
	border-color: var(--a4-active-border) !important;
	color: var(--a4-active-color);
}
.btn-active svg{
	fill: var(--a4-active-color);
}



.removeBtn {
    position:absolute;
    top:10px;
	left:5px;
    background:#f00;
    border-color:#f00; 
    z-index:5;
	color:#fff;
}


.actionBtns button:hover { color:#3b82f6; }

.actionBtns button.saveBtn{
	border-color:#14ab00;
	background-color:#14ab00;
}
.actionBtns button.saveBtn{
	color:#fff;
}

.actionBtns svg {
    fill:currentColor;
}

button svg{
    width:20px;
    height:20px;
	user-select: none;
    pointer-events: none;
}

@media (min-width:768px){
	button svg{
		width:18px;
		height:18px;
	}
}


/* butonlar bitti */


.directColum{flex-direction: column;}
.justifyCenter{justify-content: center;}

@media(max-width:767px){
	.preview{display:none!important}
}

@media(min-width:768px){
	.directColum{flex-direction:unset;}
	.justifyCenter{justify-content: space-between;}
}

.fitDiv{
	margin:5px 0;
}
.sectionName{
	width:100%;
	text-align:left;
	margin-top: 8px;
}

.fileSizeDiv{
	width:100%;
	text-align:left;
	margin-top: 8px;
}

.pageOrient{
	display:flex;
	justify-content: space-around;
	width: 100%;
}




















#pdfPreviewFrame {
    width:100%;
    height:600px;
    border:1px solid #ccc;
    margin-top:20px;
}

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


.thumbLoading{display:none; top: 30px;
    text-align: center;
    position: absolute;
    width: 80px;
}
.thumbProgress{width:80%; background:#eee; border-radius:5px; margin:5px auto; height:8px;}
.thumbProgressBar{width:0%; height:100%; background:#3b82f6; border-radius:5px;}
.spinner{
    border:3px solid #eee; border-top:3px solid #3b82f6; border-radius:50%; width:20px; height:20px; animation:spin 1s linear infinite; margin:0 auto;
}

#pageLoading{
	position: absolute;
    width: 100px;
	padding:10px;
	background-color:rgba(0,0,0,.5);
	border-radius:5px;
	top:50%;
	left:50%;
	transform:translate(-50%, -50%);
}
#pageLoading p{
	font-size:12px;
	text-align:center;
	margin-bottom:0;
	color:#fff;
}



.pdf-page-sect{
	min-height:85vh;
	background-color:var(--side-menu-bg-l);
	padding:20px;
}






dialog {
  width: 90vw;
  height: 90vh;
}

#cropCanvas {
  max-width: 100%;
  max-height: 100%;
}

.grid{display:flex;flex-wrap: wrap;overflow:auto;gap:10px;}

.modal .page{
    width:calc(16.66666666666667% - 10px);
    text-align:center;
    border: var(--input-border) solid 1px;
    padding: 10px;
}
.modal .page .canvas-div{
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 595/841;
}

.modal .page canvas{
    transform-origin: center;
    max-width:100%;
    max-height:100%;
    box-shadow:0 0 2px rgba(0,0,0,.5);
}
.modal .page.disabled{opacity:.3}


.cropRect{
    position:absolute;
    border:2px solid #00e5ff;
    pointer-events:none;
}

.cropHandle{
    position:absolute;
    width:12px; height:12px;
    background:#00e5ff;
    border-radius:50%;
}
.cropToolbar div{
	display:flex;
	justify-content: space-between;
	padding-top: 10px;
}
.cropModalBtn{
	width:auto;
	padding: 5px 10px;
    color: #ddd;
    background-color: #000;
    border: #666 solid 1px;
    border-radius: 3px;
}





.pages-info strong{
    font-size:18px;
    padding-left:5px;
}

.crop-wrap{position:relative;}
.crop-wrap canvas{position:absolute;top:0;left:0;}

.cropBox{
    position:relative;
    background:#000;
    padding:10px;
}





.cell-overlay-div {
  position: absolute;
  box-sizing: content-box;
  inset: 20px;
}
.cell-overlay {
  position: absolute;
  box-shadow: 0 0 1px #f90;
  cursor: grab;
}
.drag-highlight {
  background: rgba(0, 0, 255, 0.2);
}

.drag-ghost {
  background: rgba(0, 255, 0, 0.2);
}
.drag-chosen {
  cursor: grabbing;
}
.drag-selected {
  /*background: rgba(0,255,255,.2);*/
  box-shadow: 0 0 4px #f00;
}

.gizlex {
  display: none !important;
}

#spinner {
  display: none;
}

@media (max-width: 768px) {
  .modal-box {
    width: 100%;
    height: 100%;
  }
}

.cell-overlay-div .actionBtns {
  /* coklu imajlarda secilen imaj icin crop, rotate vb butonlar icin kullanilir.*/
  display: none;
  flex-direction: column;
  left: -24px;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}
.cellRemoveBtn {
  background: #f00;
  border-color: #f00;
  color: #fff;
  z-index: 5;
}

.btn svg {
  width: 20px;
  height: 20px;
  user-select: none;
  pointer-events: none;
}

.ikon-alt-menu datalist {
  color: #fff;
}
.ikon-alt-menu {
  visibility: hidden;
  position: absolute;
  top: 0;
  right: calc(100% + 10px);
  width: 1px;
  padding: 10px;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease-in;
  overflow: hidden;
  padding: 10px 5px 10px 3px;
  writing-mode: vertical-lr;
}

datalist {
  display: flex;
  width: 20px;
  height: calc(100% - 5px);
  margin-top: 3px;
  margin-left: -5px;
  font-size: 12px;
  flex-direction: column-reverse;
  flex-wrap: wrap;
  writing-mode: horizontal-tb;
  justify-content: space-between;
}
.ikon-acik .ikon-alt-menu {
  visibility: visible;
  width: 60px;
}

.divAlign .ikon-alt-menu,
.divFitMode .ikon-alt-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  writing-mode: unset;
}

.divAlign.ikon-acik .ikon-alt-menu {
  visibility: visible;
  width: 42px;
}
.divFitMode.ikon-acik .ikon-alt-menu {
  visibility: visible;
  width: 80px;
}

.ikon-alt-menu input[type="range"] {
  width: auto;
  height: 180px;
}
@media (min-width: 500px) {
}

.ikon-acik button.backgrnd {
  background-color: #ccc;
}
.actionBtns button:hover svg {
  color: #f00;
}
#previewx {
  width: 157px;
}

.filesLoading {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  margin-top: -50px;
  z-index: 25000;
  color: #fff;
}
.filesProgress {
  width: 80%;
  background: #eee;
  border-radius: 5px;
  margin: 5px auto;
  height: 8px;
}
.filesProgressBar {
  width: 0%;
  height: 100%;
  background: #00ff00;
  border-radius: 5px;
}
#statusLoading {
  height: 18px;
}

.files-size-warning {
    display:flex;
    align-items: center;
    visibility: hidden;
    position: fixed;
    top: auto;
    min-width: 360px;
    text-align: center;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    bottom: -100px;
    padding: 15px 24px 15px 15px;
    color: #fff;
    background-color: #f90;
    font-size: 14px;
    border-radius:5px 5px 0 0;
    transition: 0.5s ease-in-out;
    z-index: 10000;
}
.infoIcon{
    font-size: 18px;
    border-radius: 11px;
    border: #fff solid 2px;
    width: 20px;
    height: 20px;
    overflow: hidden;
    flex: 0 0 20px;
    font-weight: 700;
    margin-right: 10px;
}
.files-size-warning.safe {
  visibility: visible;
  bottom: 0;
  background-color: #f90;
}
.files-size-warning.lowMemory {
  visibility: visible;
  bottom: 0;
  background-color: #09f;
}
.files-size-warning.extreme {
  visibility: visible;
  bottom: 0;
  background-color: #f00;
}

.btn-close{
    position: absolute;
    top: 5px;
    left: auto;
    right: 5px;
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, .75);
    cursor: pointer;
    background-color: unset;
}
.btn-close:hover{
    color:#fff;
}
.thumbHeader {
    display:flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% + 10px);
    margin: -10px -10px 5px -10px;
    height: 24px;
    padding:2px 5px;
    text-align:right;
    font-size:14px;
    background-color: var(--border-normal);
}
.thumbHeader:hover {
  cursor: move;
}
.thumbHeader svg{
    width:auto;
    height:16px;
    margin: 2px 0;
    opacity:.5
}
.dark .thumbHeader svg {
    fill: #fff;
}
.actionBtns,
.removeBtn {
  top: 36px;
}

@media (min-width: 992px) {
  .thumb {
    width: calc(33.333333333333% - 7px);
  }
}

.help {
  width: 100%;
  font-size: 14px;
}
.help .section {
  border-bottom: #ddd solid 1px;
  padding: 10px 0;
}
.help .section p {
  display: flex;
  align-items: center;
  padding: 0 0 5px 0;
  margin: 0;
}
.help .section div {
  margin-left: 20px;
  display: flex;
  align-items: center;
}
.help img {
  margin-right: 10px;
  user-select: none;
}


.btn-abort{
    padding:7px 15px;
}
.ikon-alt-menu .iconBtn{
    font-size:14px;
}