@font-face{font-family:Arabic;src:url('/fonts/arabic.ttf')}*{box-sizing:border-box}body{margin:0;background:#f5f5f0;color:#16344a;font-family:Arabic,Tahoma,sans-serif;font-size:15px}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a{cursor:pointer}button{border:0;border-radius:10px;padding:11px 18px;background:#12334d;color:white;transition:.2s}button:hover{filter:brightness(1.12)}button:disabled{opacity:.45;cursor:wait}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}p{line-height:1.9;color:#6a7982}input,select{border:1px solid #dce1e1;background:white;border-radius:10px;padding:11px 13px;color:#12334d;max-width:100%}label{display:grid;gap:7px}aside{position:fixed;right:0;top:0;bottom:0;width:240px;background:#12334d;color:#fff;padding:34px 24px;display:flex;flex-direction:column;z-index:4}.brand{font-size:27px;font-weight:bold}.brand small{display:block;color:#c4d1d9;font-size:11px;font-weight:normal;letter-spacing:1px;margin-top:5px}.mark{color:#d3aa65;font-size:26px}nav{display:grid;gap:10px;margin-top:55px}nav a{padding:13px;border-radius:10px;color:#cdd9df}nav a.active,nav a:hover{background:#ffffff16;color:#fff}.aside-bottom{margin-top:auto;font-size:12px;color:#bbcbd4;line-height:2}.shell{margin-right:240px;padding:32px 48px;max-width:1600px}.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:35px;font-size:12px;color:#76838b}.online{display:flex;align-items:center;gap:7px}.online:before{content:'';background:#559c78;border-radius:50%;width:7px;height:7px}.eyebrow{font-size:12px;color:#ae8138;margin-bottom:8px}h1{font-size:30px;line-height:1.5;margin-bottom:9px}h2{font-size:21px}h3{font-size:16px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.panel{background:#fff;border:1px solid #e3e5e1;border-radius:18px;padding:28px}.hero{background:#e9eee9;border:1px solid #dce4dc;border-radius:20px;display:grid;grid-template-columns:1.2fr 1fr;gap:35px;padding:40px;align-items:center}.hero h1{font-size:34px}.hero .paper{background:white;border-radius:4px;box-shadow:0 16px 40px #19334915;padding:20px;text-align:center;transform:rotate(-5deg);max-width:260px;margin:auto;width:100%;height:265px}.paper .gold{height:2px;background:#bd8d3c;margin:12px}.paper b{font-size:20px}.paper i{display:block;border-bottom:2px dotted #d7dcdf;margin:18px 0}.upload{border:2px dashed #cad3d4;background:#fbfcfa;border-radius:16px;text-align:center;padding:40px 20px;margin-top:24px}.upload.drag{border-color:#bd8d3c;background:#fffaf1}.upload h2{margin:12px 0 6px}.upload p{font-size:13px;margin-bottom:20px}.upload-icon{font-size:32px;color:#bd8d3c}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:25px}.step{padding:22px;background:white;border:1px solid #e3e5e1;border-radius:14px}.step span{display:inline-grid;place-items:center;background:#f4efe4;color:#a97e35;border-radius:9px;width:32px;height:32px;margin-bottom:10px}.step p{font-size:12px;margin-top:5px}.muted{color:#7b898f;font-size:12px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:24px 0}.stat{background:white;border:1px solid #e3e5e1;padding:20px;border-radius:14px}.stat strong{font-size:28px;display:block}.toolbar,.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.toolbar{margin:20px 0}.toolbar input{flex:1;min-width:170px}.secondary{background:white;border:1px solid #d8dfdf;color:#12334d}.gold-button{background:#bd8d3c}.danger{background:#fff3ef;color:#ad493a}.job-list{display:grid;gap:12px}.job{background:white;border:1px solid #e0e5e3;border-radius:14px;padding:21px;display:flex;align-items:center;gap:18px}.file-icon{width:46px;height:56px;background:#eff2ee;border-radius:8px;color:#9b783b;font-size:11px;display:grid;place-items:center;flex-shrink:0;font-weight:bold}.job-info{flex:1;min-width:0}.job h3{overflow-wrap:anywhere}.job .muted{margin-top:6px}.badge{display:inline-block;border-radius:7px;padding:4px 10px;font-size:11px;background:#edf0ed;color:#62746b}.badge.completed{background:#e8f2e9;color:#428157}.badge.processing,.badge.importing,.badge.queued{background:#fbf1da;color:#a37b2c}.badge.failed{background:#fbece8;color:#b15542}.progress{height:5px;background:#edf0ed;border-radius:5px;overflow:hidden;margin-top:12px}.progress i{display:block;height:100%;background:#bd8d3c;transition:width .5s}.empty{text-align:center;padding:70px 20px}.empty h2{margin-bottom:10px}.page-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px;margin:25px 0 110px}.page-card{background:white;border:1px solid #dce1df;border-radius:13px;overflow:hidden;position:relative}.page-card.dragging{opacity:.4}.page-image{height:260px;background:#e8ece8;padding:10px;cursor:zoom-in;display:flex;align-items:center;justify-content:center}.page-image img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 3px 8px #0001}.page-tools{padding:11px;display:flex;align-items:center;justify-content:space-between;gap:5px}.page-tools button{padding:5px 9px;background:#eef1ed;color:#234354}.page-tools input{width:54px;padding:4px;text-align:center}.page-caption{font-size:11px;padding:0 12px 10px;color:#86918f}.drag-handle{cursor:grab;font-size:21px;padding:4px;color:#83928f;touch-action:none}.start-bar{position:fixed;bottom:0;right:240px;left:0;padding:16px 48px;background:#fffffff5;backdrop-filter:blur(10px);border-top:1px solid #dfe4df;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:15px}.processing-panel{text-align:center;max-width:650px;margin:50px auto}.processing-panel h2{margin:22px 0 10px}.processing-panel .progress{height:9px;margin:25px 0 15px}.spinner{border:3px solid #ede5d5;border-top-color:#bd8d3c;border-radius:50%;height:54px;width:54px;margin:auto;animation:spin 1.5s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.big-number{font-size:48px;color:#bd8d3c}.note{border-radius:10px;background:#f2f5f0;padding:14px;font-size:12px;line-height:1.9;color:#6e8073;margin-top:20px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid .wide{grid-column:1/-1}.settings-grid input[type=checkbox]{width:18px;height:18px}.check{display:flex;align-items:center;gap:12px}.login{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#12334d,#244f63)}.login-box{width:420px;max-width:100%;background:#fcfcf8;border-radius:23px;padding:40px}.login-box h1{font-size:26px;margin:18px 0 4px}.login-box form{display:grid;gap:17px;margin-top:25px}.login-box p{font-size:12px}.login-box .brand{color:#12334d}.error{color:#b54836;font-size:12px;min-height:20px}#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:#12334d;color:white;border-radius:11px;padding:13px 22px;z-index:20;display:none;max-width:90%;box-shadow:0 5px 25px #0002}dialog{border:0;border-radius:16px;padding:15px;max-width:96vw;max-height:95vh;background:#eef1ec}dialog::backdrop{background:#0d253cdd}dialog img{display:block;max-width:90vw;max-height:82vh;object-fit:contain}dialog button{margin-bottom:10px}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #d4ad67;outline-offset:3px}.order-input{direction:ltr;width:100%;margin-top:10px}.tiny{font-size:11px}.divider{height:1px;background:#e5e8e1;margin:25px 0}
@media(max-width:1000px){aside{width:200px;padding:30px 18px}.shell{margin-right:200px;padding:25px}.start-bar{right:200px;padding:15px 25px}.hero{padding:27px;gap:20px}.hero h1{font-size:27px}.hero .paper{max-width:210px}.steps{gap:10px}.step{padding:17px}}
@media(max-width:700px){aside{top:auto;bottom:0;left:0;right:0;width:100%;height:66px;padding:0;border-top:1px solid #ffffff20}.brand,.aside-bottom{display:none}nav{display:flex;justify-content:space-around;margin:0;height:100%;align-items:center;gap:0}nav a{font-size:12px;padding:12px 18px}nav .nav-icon{display:block;font-size:17px;text-align:center}.shell{margin:0;padding:20px 17px 100px}.top{margin-bottom:25px}.top:before{content:'أوراق أمجد';font-size:18px;font-weight:bold;color:#12334d}.top>span{display:none}h1{font-size:25px}.heading{align-items:flex-start;margin-bottom:20px}.hero{grid-template-columns:1fr;padding:25px}.hero .paper{display:none}.hero h1{font-size:27px}.hero p{font-size:13px}.upload{padding:28px 15px}.steps{grid-template-columns:1fr;gap:10px}.step{display:grid;grid-template-columns:35px 1fr;column-gap:12px;padding:15px}.step span{grid-row:1/3;margin:0}.step p{margin:0}.stats{gap:8px}.stat{padding:14px 10px}.stat strong{font-size:24px}.stat span{font-size:11px}.job{padding:16px;gap:12px;flex-wrap:wrap}.job .actions{width:100%;justify-content:flex-end}.job .actions button,.job .actions a{font-size:12px;padding:8px 13px}.page-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:170px}.page-image{height:220px;padding:6px}.page-tools{padding:7px;gap:3px}.page-tools button{padding:4px 6px}.page-tools input{width:42px;font-size:12px}.page-caption{font-size:10px;padding:0 8px 8px}.start-bar{bottom:66px;right:0;padding:12px 17px;align-items:center}.start-bar p{font-size:11px}.start-bar button{font-size:12px;white-space:nowrap}.settings-grid{grid-template-columns:1fr}.settings-grid .wide{grid-column:auto}.panel{padding:21px}.processing-panel{margin:25px auto}.login-box{padding:30px}.login-box .brand{display:block}.toolbar button{font-size:12px}.online{font-size:10px}.big-number{font-size:40px}}

.heading button{white-space:nowrap}dialog img.zoomed{max-width:none;max-height:none;width:1200px;cursor:zoom-out}dialog img{cursor:zoom-in}

.header-upload{display:block;padding:12px 18px;background:#edf1eb;border:1px solid #d8dfd5;border-radius:10px;cursor:pointer;text-align:center}
