#page-devir{min-width:0;width:100%;color:var(--brand-text,#e8f5ff)}
#page-devir.page{display:none}
#page-devir.page.active{display:block}

/* ---------- Başlık ---------- */
.dr-hero{display:flex;align-items:center;gap:18px;padding:22px;border:1px solid #245b7b;border-radius:16px;background:linear-gradient(110deg,#08283f,#07192b);margin-bottom:16px;flex-wrap:wrap}
.dr-hero-icon{width:62px;height:62px;flex:none;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,#0d3b52,#0a2233);border:1px solid #3ba7a0;color:#6fe9dc;box-shadow:inset 0 0 22px #0aa59833}
.dr-hero-icon svg{width:32px;height:32px}
.dr-hero-copy{flex:1;min-width:220px}
.dr-hero-copy small{letter-spacing:2px;color:#5de4ea;font-size:11px;font-weight:800}
.dr-hero-copy h1{font-size:27px;margin:4px 0 5px}
.dr-hero-copy p{margin:0;color:#9fbfce;font-size:14px}
.dr-hero-actions{margin-left:auto;display:flex;gap:10px;flex-wrap:wrap}

/* ---------- Sayaçlar ---------- */
.dr-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}
.dr-stat{position:relative;overflow:hidden;padding:16px 18px;border:1px solid #24506b;border-radius:14px;background:linear-gradient(130deg,#0a2437,#051520);min-width:0}
.dr-stat::after{content:"";position:absolute;inset:auto -30px -50px auto;width:110px;height:110px;border-radius:50%;background:#1b8fbf12}
.dr-stat span{display:block;font-size:10.5px;letter-spacing:1.1px;font-weight:800;color:#8fb7c9}
.dr-stat b{display:block;font-size:27px;line-height:1.2;margin:8px 0 4px;color:#eaf7ff;font-variant-numeric:tabular-nums}
.dr-stat small{font-size:11.5px;color:#7fa3b5}
.dr-stat.devir{border-color:#2a7f95}.dr-stat.devir b{color:#7ce6ff}
.dr-stat.alim{border-color:#2c8a68}.dr-stat.alim b{color:#7df0bc}
.dr-stat.draft{border-color:#8a7333}.dr-stat.draft b{color:#ffdb7c}
.dr-stat.bedel{border-color:#6f5aa8}.dr-stat.bedel b{color:#c9b6ff;font-size:22px}

/* ---------- Yükleme kartı ---------- */
.dr-drop-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,440px);gap:20px;align-items:center;padding:20px;border:1px solid #27556e;border-radius:16px;background:linear-gradient(115deg,#07202f,#061a27);margin-bottom:16px}
.dr-drop-copy span{font-size:10.5px;letter-spacing:1.4px;font-weight:800;color:#5db6c9}
.dr-drop-copy b{display:block;font-size:18px;margin:6px 0 6px;color:#eaf8ff}
.dr-drop-copy p{margin:0;font-size:13px;line-height:1.6;color:#95b6c6;max-width:560px}
.dr-drop{display:flex;align-items:center;gap:14px;padding:16px 18px;border:1.5px dashed #2f7f9b;border-radius:12px;background:#0a2c3f55;cursor:pointer;transition:border-color .15s,background .15s,transform .15s}
.dr-drop:hover,.dr-drop.over{border-color:#4fe0d3;background:#0a3f4e80;transform:translateY(-1px)}
.dr-drop-ico{width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:11px;background:#0f4b5c;color:#7ff0e2;font-size:22px}
.dr-drop>div{flex:1;min-width:0}
.dr-drop b{display:block;font-size:14.5px;color:#e8f8ff}
.dr-drop small{display:block;font-size:11.5px;color:#8db4c5;margin-top:3px}
.dr-upload-status{margin-top:14px;padding:13px 15px;border-radius:10px;font-size:13px;line-height:1.65;border:1px solid #27556e;background:#0a2331;color:#cfe6f2;grid-column:1/-1}
.dr-upload-status.ok{border-color:#2c8a68;background:#07301f80;color:#a9f3d2}
.dr-upload-status.warn{border-color:#8a7333;background:#3a2c0a80;color:#ffe6a6}
.dr-upload-status.err{border-color:#8d3c55;background:#3a0f1c80;color:#ffb3c4}
.dr-upload-status.busy{border-color:#2a7f95;color:#b9e7f7}
.dr-parsed{margin-top:8px;font-size:12.5px;color:#a8cfe0}
.dr-spin{display:inline-block;width:13px;height:13px;border:2px solid #4fe0d3;border-right-color:transparent;border-radius:50%;animation:drspin .8s linear infinite;vertical-align:-2px;margin-right:6px}
@keyframes drspin{to{transform:rotate(360deg)}}

/* ---------- Araç çubuğu ---------- */
.dr-tools{display:flex;gap:10px;align-items:center;margin:16px 0;flex-wrap:wrap}
.dr-tabs{display:flex;gap:6px;padding:5px;border:1px solid #24506b;border-radius:11px;background:#061c2b;flex-wrap:wrap}
.dr-tabs button{padding:9px 14px;border:0;border-radius:8px;background:transparent;color:#a8c9d8;font-size:13px;font-weight:600;cursor:pointer}
.dr-tabs button:hover{background:#0d3346;color:#e6f7ff}
.dr-tabs button.active{background:linear-gradient(120deg,#0f6f88,#0d4f6a);color:#f0fcff;box-shadow:0 4px 14px #0004}
.dr-search{flex:1;min-width:180px;position:relative}
.dr-search svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#6f9bb0}
.dr-search input{width:100%;box-sizing:border-box;padding:12px 13px 12px 38px;background:#061c2b;color:#effaff;border:1px solid #285268;border-radius:9px;font-size:13.5px;font-family:inherit}

/* ---------- Paneller ---------- */
.dr-panel{background:#061b2a;border:1px solid #234d65;border-radius:14px;overflow:hidden;margin-bottom:16px}
.dr-panel-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid #23465a}
.dr-panel-head h2{font-size:18px;margin:0}
.dr-panel-head span{font-size:12.5px;color:#9fc5d6}
.dr-empty{padding:46px 24px;text-align:center;color:#a8c9d8;line-height:1.75;font-size:14px}
.dr-empty.sm{padding:24px}
.dr-table-scroll{overflow:auto}
.dr-panel table{border-collapse:collapse;width:100%;font-size:14px}
.dr-panel th{font-size:10.5px;letter-spacing:.8px;color:#86b8cf;background:#092638;text-align:left;padding:12px 14px;white-space:nowrap}
.dr-panel td{padding:14px;border-bottom:1px solid #163b50;vertical-align:middle}
.dr-panel td small{display:block;color:#8db0c1;margin-top:5px;font-size:11.5px;white-space:nowrap}
.dr-panel tr.done{background:#07241c40}
.dr-pill{display:inline-block;padding:6px 11px;border-radius:20px;font-size:11.5px;font-weight:800;letter-spacing:.4px;white-space:nowrap}
.dr-pill.devir{color:#8ce9ff;background:#1a8bb330;border:1px solid #2a7f95}
.dr-pill.alim{color:#8df0c4;background:#1a8b6030;border:1px solid #2c8a68}
.dr-status{display:inline-block;padding:6px 11px;border-radius:20px;font-size:11.5px;font-weight:700;white-space:nowrap}
.dr-status.draft{color:#ffdb7c;background:#a8842520;border:1px solid #8a7333}
.dr-status.done{color:#8df0c4;background:#1a8b6020;border:1px solid #2c8a68}
.dr-link{border:0;background:none;padding:0;color:#eaf7ff;font:inherit;font-weight:700;text-align:left;cursor:pointer}
.dr-link:not(:disabled):hover{color:#6fe9dc;text-decoration:underline}
.dr-link:disabled{cursor:default;color:#eaf7ff}
.dr-none{color:#6f8fa0}
.dr-money{color:#bff3c9;font-variant-numeric:tabular-nums}
.dr-actions{white-space:nowrap}
.dr-row-btn{border:1px solid #2d607b;border-radius:7px;padding:7px 9px;margin:2px;background:#0d334a;color:#dceff9;cursor:pointer;font-size:11.5px;font-family:inherit}
.dr-row-btn:hover{background:#12425c}
.dr-row-btn.danger{color:#ffa1b4;border-color:#6c3750}
.dr-row-btn.view{color:#8ee9ff;border-color:#2b9d98;background:#0a3c4420;font-weight:700}

/* ---------- Karar yazıları ---------- */
.dr-docs-panel .dr-doc-row{display:flex;align-items:center;gap:14px;padding:13px 18px;border-bottom:1px solid #143549}
.dr-docs-panel .dr-doc-row:last-child{border-bottom:0}
.dr-doc-icon{width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:10px;font-size:11px;font-weight:800;letter-spacing:.5px;background:#0d3346;color:#8fd9ef;border:1px solid #2b6b86}
.dr-doc-icon.alim{background:#0b3a2c;color:#8df0c4;border-color:#2c8a68}
.dr-doc-copy{flex:1;min-width:0}
.dr-doc-copy b{display:block;font-size:14px;color:#eaf7ff;overflow-wrap:anywhere}
.dr-doc-copy small{display:block;font-size:11.5px;color:#8db0c1;margin-top:4px}
.dr-doc-copy em{display:block;font-style:normal;font-size:12px;color:#9fd6c6;margin-top:4px}
.dr-doc-actions{display:flex;gap:6px;flex-wrap:wrap}
.dr-doc-actions a,.dr-doc-actions button{border:1px solid #2d607b;border-radius:7px;padding:7px 10px;background:#0d334a;color:#dceff9;font-size:11.5px;text-decoration:none;cursor:pointer;font-family:inherit}
.dr-doc-actions a:hover,.dr-doc-actions button:hover{background:#12425c}
.dr-doc-actions .danger{color:#ffa1b4;border-color:#6c3750}

/* ---------- Form ---------- */
#drDialog{width:min(880px,calc(100vw - 26px));max-height:92vh;box-sizing:border-box;overflow:auto;padding:0;border:1px solid #3683a8;border-radius:16px;background:#071f31;color:#eaf8ff;font-family:inherit}
#drDialog::backdrop{background:#0009;backdrop-filter:blur(4px)}
#drForm{padding:22px 24px 24px}
#drForm header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px}
#drForm header span{font-size:10.5px;letter-spacing:1.4px;font-weight:800;color:#5db6c9}
#drForm header h2{font-size:21px;margin:5px 0 0}
#drClose{background:none;border:0;color:#cce7f5;font-size:28px;line-height:1;cursor:pointer;padding:0 4px}
#drForm label{display:flex;flex-direction:column;gap:7px;margin-bottom:14px;font-size:13px;color:#bdd9e7}
#drForm label.full{grid-column:1/-1}
#drForm input,#drForm select,#drForm textarea{width:100%;box-sizing:border-box;padding:11px 12px;font-family:inherit;font-size:14.5px;color:#f0faff;background:#041624;border:1px solid #28556d;border-radius:8px}
#drForm input:focus,#drForm select:focus,#drForm textarea:focus{outline:0;border-color:#4fe0d3;box-shadow:0 0 0 2px #4fe0d322}
#drForm textarea{resize:vertical}
#drForm fieldset{border:1px solid #234d65;border-radius:12px;padding:16px 16px 4px;margin:0 0 16px;background:#051a27}
#drForm legend{display:flex;align-items:center;gap:9px;padding:0 8px;font-size:11.5px;font-weight:800;letter-spacing:1px;color:#8fd9ef}
#drForm legend span{width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:#0f6f88;color:#f0fcff;font-size:11px}
#drForm legend small{font-weight:600;letter-spacing:0;color:#8db0c1;font-size:11px}
.dr-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.dr-form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.dr-person.to legend{color:#8df0c4}
.dr-person.to legend span{background:#1b7a5c}
.dr-results{display:grid;max-height:190px;overflow:auto;margin-bottom:10px}
.dr-results:empty{display:none}
.dr-results button{text-align:left;background:#0a293d;color:#e6f4ff;border:1px solid #214a61;border-radius:7px;padding:10px 12px;cursor:pointer;font-family:inherit;font-size:13.5px;margin-bottom:5px}
.dr-results button:hover{background:#0f3a52;border-color:#2b9d98}
.dr-results small{display:block;color:#94bbd0;margin-top:3px;font-size:11.5px}
.dr-results p{margin:4px 0;color:#8db0c1;font-size:13px}
.dr-chosen{padding:12px 14px;border:1px solid #2b9d98;border-radius:9px;background:#0a3c4420;color:#6be6d3;margin-bottom:12px}
.dr-chosen b{display:block;font-size:14.5px}
.dr-chosen small{display:block;font-size:11.5px;color:#9fd6c6;margin-top:3px}
.dr-person.to .dr-chosen{border-color:#2c8a68;background:#0b3a2c33;color:#8df0c4}
.dr-clear{background:none;border:0;color:#ffa1b4;font-size:12px;cursor:pointer;padding:0 0 12px;text-decoration:underline;font-family:inherit}
.dr-check{flex-direction:row!important;align-items:center;gap:9px!important;font-size:13px;color:#bdd9e7}
.dr-check input{width:17px!important;height:17px;flex:none;accent-color:#2b9d98}
.dr-check b{color:#8df0c4}
.dr-sum{display:flex;justify-content:space-between;align-items:center;padding:11px 14px;margin:2px 0 12px;border-radius:9px;background:#06212f;border:1px solid #234d65}
.dr-sum span{font-size:12.5px;color:#9fc5d6}
.dr-sum b{font-size:18px;color:#bff3c9;font-variant-numeric:tabular-nums}
#drError{color:#ffb3c4;font-size:13px;margin:4px 0 0;min-height:18px}
#drForm footer{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
#drForm footer #drDelete{margin-left:auto}

/* ---------- Duyarlı ---------- */
@media(max-width:1180px){.dr-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.dr-drop-card{grid-template-columns:1fr}}
@media(max-width:900px){.dr-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dr-form-grid.four{grid-template-columns:1fr 1fr}}
@media(max-width:640px){
  .dr-hero{padding:18px}.dr-hero h1{font-size:23px}.dr-hero-actions{margin:0;width:100%}.dr-hero-actions .btn{width:100%}
  .dr-stats{grid-template-columns:1fr}
  .dr-form-grid,.dr-form-grid.four{grid-template-columns:1fr}
  .dr-drop{flex-wrap:wrap}.dr-drop>div{flex-basis:100%}
  .dr-docs-panel .dr-doc-row{flex-wrap:wrap}.dr-doc-actions{width:100%}
  .dr-tools{gap:8px}.dr-tabs{width:100%;justify-content:space-between}.dr-search{order:3;flex-basis:100%}
  #drForm{padding:18px 16px 20px}
  #drDialog{max-height:94vh}
}
