/* Tarif Defteri - tarifi içe aktar. index.html :root değişkenlerini kullanır */
.im-bk{position:fixed;top:0;bottom:0;left:max(0px,calc(50% - 215px));right:max(0px,calc(50% - 215px));z-index:320;background:rgba(0,0,0,.4);display:flex;align-items:flex-end;justify-content:center;animation:im-fade .2s both;overscroll-behavior:none;font-family:var(--font)}
.im-bk *{box-sizing:border-box}
.im-bk.out{opacity:0;transition:opacity .2s}
.im-sheet{width:100%;max-width:430px;max-height:100%;overflow-y:auto;overscroll-behavior:contain;background:var(--card);color:var(--label);border-radius:20px 20px 0 0;padding:8px 16px calc(16px + var(--sab));animation:im-up .3s cubic-bezier(.2,.9,.25,1)}
.im-grab{width:36px;height:5px;border-radius:3px;background:var(--fill2);margin:2px auto 8px}
.im-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.im-head h2{margin:0;font-size:1.25rem;font-weight:800;letter-spacing:-.3px}
.im-x{width:44px;height:44px;margin-right:-10px;border-radius:50%;display:grid;place-items:center;color:var(--label2)}
.im-seg{display:flex;padding:2px;border-radius:10px;background:var(--fill);margin-bottom:12px}
.im-seg button{flex:1;min-width:0;min-height:44px;border-radius:8px;font-size:.9375rem;font-weight:600;color:var(--label)}
.im-seg button.on{background:var(--card);box-shadow:0 1px 3px rgba(0,0,0,.14),0 0 0 .5px rgba(0,0,0,.04)}
.im-panel{display:flex;flex-direction:column;gap:10px}
.im-in{width:100%;min-height:48px;padding:12px 14px;border-radius:12px;background:var(--fill);color:var(--label);border:0;outline:0;font:inherit;font-size:1rem;-webkit-appearance:none;appearance:none}
textarea.im-in{resize:none;min-height:150px;line-height:1.4}
.im-in:focus-visible,.im-drop:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.im-paste{align-self:flex-start;min-height:44px;padding:0 14px;border-radius:12px;background:var(--fill);color:var(--accent-t,var(--accent));font-weight:600;font-size:.9375rem;display:inline-flex;align-items:center;gap:8px}
.im-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:150px;padding:16px;border-radius:14px;border:1.5px dashed var(--fill2);background:var(--fill);color:var(--label2);text-align:center;cursor:pointer}
.im-drop b{color:var(--label);font-size:1rem}.im-drop small{font-size:.8125rem}
.im-drop.has{padding:8px;border-style:solid}.im-drop img{max-width:100%;max-height:220px;border-radius:10px;object-fit:contain}
.im-hint{margin:10px 2px 12px;font-size:.8125rem;line-height:1.4;color:var(--label2)}
.im-status[hidden],.im-err[hidden]{display:none!important}
.im-status{display:flex;align-items:center;gap:10px;margin:0 2px 12px;min-height:24px;font-size:.9375rem;color:var(--label)}
.im-spin{width:18px;height:18px;border-radius:50%;border:2.5px solid var(--fill2);border-top-color:var(--accent);animation:im-rot .8s linear infinite;flex:none}
.im-err{margin:0 0 12px;padding:10px 12px;border-radius:12px;background:var(--fill);color:var(--accent-t,var(--accent));font-size:.9375rem;line-height:1.35}
.im-go{width:100%;min-height:50px;border-radius:14px;background:var(--accent);color:var(--on-accent);font-weight:700;font-size:1.0625rem}
.im-go:disabled{opacity:.5}
.im-sheet.busy .im-seg,.im-sheet.busy .im-panel{opacity:.55;pointer-events:none}
.im-btn{min-height:44px;padding:0 14px;border-radius:12px;background:var(--fill);color:var(--label);font-weight:600;font-size:.9375rem;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.im-entry{width:100%;margin:0 0 14px}
@keyframes im-fade{from{opacity:0}}@keyframes im-up{from{transform:translateY(100%)}}@keyframes im-rot{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.im-bk,.im-sheet,.im-spin{animation-duration:.01ms!important;animation-iteration-count:1!important}.im-spin{animation:none;border-top-color:var(--accent)}}
@media (min-width:600px){.im-bk{top:20px;bottom:20px;border-radius:32px;overflow:hidden}}
