/* ERPCebimde portal (portal.* alt alan adı) — templates/portal/*.html */
@font-face { font-family: Geist; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/static/fonts/geist-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BA, U+2122, U+2212; }
@font-face { font-family: Geist; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/static/fonts/geist-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1EFF, U+20A0-20C0; }
:root { --paper: #FBF9FF; --sheet: #fff; --raised: #F8F5FF; --ink: #1D1A33; --muted: #6B6787; --line: #ECE7F7; --g1: #6D4AFF; --g2: #D9578C; --gr: linear-gradient(135deg, var(--g1), var(--g2)); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: Geist, system-ui, sans-serif; color: var(--ink); background: var(--paper); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--g1); outline-offset: 2px; border-radius: 8px; }
.zemin { position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(900px 420px at 12% -8%, rgba(109,74,255,.13), transparent 70%),
  radial-gradient(800px 380px at 95% 0%, rgba(217,87,140,.10), transparent 70%); }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* üst çubuk */
.ust { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ust .marka { height: 26px; width: auto; color: var(--ink); display: block; }
.ust .kare { display: none; height: 34px; width: 34px; }
.firma { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 13px 5px 5px; font-size: 13px; font-weight: 600; max-width: 320px; }
.firma b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #EFE9FF; color: var(--g1); font-size: 11px; flex-shrink: 0; }
.firma span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ara { margin-left: auto; width: 380px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 12px; color: var(--muted); font-size: 14px; text-align: left; }
.ara:hover { border-color: #DCD3F5; }
.ara kbd { margin-left: auto; font: 11px Geist, sans-serif; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.yuvarlak { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); position: relative; }
.yuvarlak:hover { background: #F3EFFC; color: var(--ink); }
.yuvarlak em { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; border-radius: 8px; background: #E5484D; color: #fff; font: 700 10px/16px Geist, sans-serif; text-align: center; font-style: normal; padding: 0 4px; }
.ara-k { display: none; }
.profil { position: relative; }
.profil summary { list-style: none; cursor: pointer; }
.profil summary::-webkit-details-marker { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gr); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.menu { position: absolute; right: 0; top: 46px; width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 24px 48px -24px rgba(29,26,51,.35); }
.menu .kim { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .kim b { display: block; font-size: 14px; } .menu .kim small { color: var(--muted); font-size: 12px; word-break: break-all; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--raised); }
.menu svg.i { width: 18px; height: 18px; color: var(--muted); }
[hidden] { display: none !important; }

/* gövde */
.govde { max-width: 1320px; margin: 0 auto; padding: 36px 28px 56px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
.selam { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.selam h1 { font-size: 34px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.selam p { color: var(--muted); margin-top: 4px; font-size: 15px; }
.durum { display: flex; gap: 8px; flex-wrap: wrap; }
.cip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cip i { width: 7px; height: 7px; border-radius: 50%; background: #1FA971; box-shadow: 0 0 0 3px rgba(31,169,113,.15); }
.cip i.yok { background: #E5484D; box-shadow: 0 0 0 3px rgba(229,72,77,.15); }
.bilgi { margin-top: 18px; border: 1px solid #CDEFDF; background: #EFFBF5; color: #11804F; border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.sor { margin-top: 22px; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #E2D9FF; border-radius: 18px; padding: 8px 8px 8px 18px; box-shadow: 0 18px 40px -26px rgba(109,74,255,.55); }
.sor:focus-within { border-color: var(--g1); }
.sor .yildiz { color: var(--g1); }
.sor input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 16px Geist, sans-serif; color: var(--ink); padding: 8px 0; }
.sor input::placeholder { color: var(--muted); }
.sor button { border-radius: 12px; padding: 11px 20px; font-weight: 600; font-size: 14px; color: #fff; background: var(--gr); }
.oneri { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.oneri button { font-size: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.7); border-radius: 999px; padding: 6px 12px; color: #4B4766; }
.oneri button:hover { border-color: #DCD2FF; color: var(--g1); }

h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 34px 0 14px; display: flex; align-items: center; gap: 6px; }
h2 small { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; }
.izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.kutu { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; min-height: 172px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; box-shadow: 0 1px 0 rgba(29,26,51,.03); }
a.kutu:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -22px rgba(29,26,51,.35); border-color: #DCD3F5; }
a.kutu:active { transform: scale(.98); }
.ik { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.ik svg.i { width: 24px; height: 24px; }
.kutu h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; margin-top: 14px; }
.kutu p { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.rozet { margin-top: auto; padding-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.rozet span { font-size: 12px; font-weight: 600; border-radius: 8px; padding: 3px 8px; }
.r-sari { background: #FFF4DB; color: #A15C00; } .r-mor { background: #EFE9FF; color: #5B3BE0; } .r-yesil { background: #E3F7EE; color: #11804F; } .r-kirmizi { background: #FFE8EA; color: #C22B36; } .r-gri { background: #F1EFF6; color: #6B6787; }
.yeni { position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: #fff; background: var(--gr); border-radius: 6px; padding: 2px 7px; }
.kilit { background: rgba(255,255,255,.55); border-style: dashed; }
.kilit .ik { filter: grayscale(1); opacity: .45; }
.kilit h3, .kilit p { opacity: .75; }
.kilit .talep { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kilit .talep span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.kilit .talep button { font-size: 12.5px; font-weight: 600; color: var(--g1); border: 1px solid #DCD2FF; border-radius: 9px; padding: 6px 11px; background: #fff; }
.kilit .talep button:hover { background: #F5F1FF; }
.kilit .talep .iletildi { color: #11804F; font-weight: 600; }

/* sağ sütun */
.yan { display: flex; flex-direction: column; gap: 14px; }
.kart { background: #fff; min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.kart h4 { font-size: 15px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; }
.kart h4 a { font-size: 12.5px; color: var(--g1); font-weight: 600; }
.is { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #F3F0FA; align-items: flex-start; border-radius: 10px; }
.is:first-of-type { border-top: 0; margin-top: 6px; }
a.is:hover b { color: var(--g1); }
.is .nk { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.is .nk svg.i { width: 17px; height: 17px; }
.is b { display: block; font-size: 13.5px; font-weight: 600; }
.is small { font-size: 12px; color: var(--muted); }
.is .z { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.bos { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.n-sari { background: #FFF4DB; color: #A15C00; } .n-kirmizi { background: #FFE8EA; color: #C22B36; } .n-yesil { background: #E3F7EE; color: #11804F; } .n-mor { background: #EFE9FF; color: #5B3BE0; } .n-gri { background: #F1EFF6; color: #6B6787; }
.rakam { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.rakam div { background: var(--raised); border-radius: 14px; padding: 12px; min-width: 0; }
.rakam small { font-size: 11.5px; color: var(--muted); } .rakam b { display: block; font-size: 18px; font-weight: 650; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.not { font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.ajan { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ajan .nk { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.ajan b { font-size: 13.5px; } .ajan small { color: var(--muted); font-size: 12px; }

/* arama penceresi */
.pencere { position: fixed; inset: 0; z-index: 50; background: rgba(29,26,51,.35); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.pencere .kap { width: 100%; max-width: 560px; background: #fff; border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(29,26,51,.5); overflow: hidden; }
.pencere .giris { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pencere input { flex: 1; border: 0; outline: 0; font: 16px Geist, sans-serif; color: var(--ink); min-width: 0; }
.pencere ul { list-style: none; max-height: 52vh; overflow-y: auto; padding: 6px; }
.pencere li a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.pencere li a small { margin-left: auto; color: var(--muted); font-size: 12px; }
.pencere li a.sec, .pencere li a:hover { background: var(--raised); }
.pencere li .mini { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.pencere li .mini svg.i { width: 16px; height: 16px; }
.pencere .ipucu { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* giriş */
.giris-sayfa { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.giris-sayfa .kart { width: 100%; max-width: 400px; padding: 28px; box-shadow: 0 30px 60px -36px rgba(29,26,51,.4); }
.giris-sayfa .baslik { text-align: center; margin-bottom: 22px; }
.giris-sayfa .baslik svg { height: 40px; width: auto; color: var(--ink); }
.giris-sayfa .baslik p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.alan { margin-top: 14px; } .alan label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.alan input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 16px Geist, sans-serif; color: var(--ink); background: #fff; }
.alan input:focus { outline: 0; border-color: var(--g1); box-shadow: 0 0 0 3px rgba(109,74,255,.15); }
.dugme { width: 100%; margin-top: 20px; border-radius: 12px; padding: 13px; font-weight: 600; font-size: 15px; color: #fff; background: var(--gr); }
.hata { background: #FFE8EA; color: #C22B36; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.alt { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 18px; line-height: 1.5; }
.alt a { color: var(--g1); font-weight: 600; }

/* tablet */
@media (max-width: 1080px) {
  .govde { grid-template-columns: minmax(0, 1fr); }
  .yan { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  .ara { width: 280px; }
}
/* telefon */
@media (max-width: 720px) {
  .ust { height: 58px; padding: 0 16px; gap: 6px; }
  .ust .marka, .firma, .ara { display: none; }
  .ust .kare { display: block; }
  .ust .logo { margin-right: auto; }
  .ara-k { display: grid; }
  .govde { padding: 20px 16px 36px; gap: 0; }
  .selam { display: block; } .selam h1 { font-size: 26px; } .durum { margin-top: 12px; }
  .sor { padding-left: 14px; } .sor button { padding: 11px 14px; }
  .oneri { flex-wrap: nowrap; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px 2px; scrollbar-width: none; }
  .oneri button { white-space: nowrap; }
  h2 { margin: 26px 0 12px; }
  .izgara { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kutu { min-height: 150px; padding: 14px; border-radius: 18px; }
  .kutu p { display: none; } .kutu h3 { font-size: 15px; margin-top: 12px; }
  .ik { width: 42px; height: 42px; }
  .kilit .talep { flex-direction: column; align-items: stretch; } .kilit .talep span { display: none; }
  .yan { margin-top: 24px; display: flex; align-items: stretch; }
  .pencere { padding-top: 10px; }
}
