/* ===== IEC Müşteri Portalı — ortak görünüm stilleri ("Kızıl" tema) ===== */
.pv, .pv-modal {
  --pv-ink: #170a0c; --pv-ink2: #22100f; --pv-bg: #f6f3f3; --pv-surface: #fff; --pv-subtle: #faf7f7; --pv-line: #ece6e6; --pv-line2: #ddd3d3;
  --pv-text: #1a1213; --pv-text2: #433838; --pv-muted: #7a6d6e; --pv-faint: #a89c9d;
  --pv-red: #dc2626; --pv-red2: #b91c1c; --pv-red50: #fef2f2; --pv-red100: #fee2e2;
  --pv-grad: linear-gradient(135deg, #ef4444 0%, #dc2626 40%, #9f1239 100%);
  --pv-ok: #047857; --pv-ok50: #ecfdf5; --pv-warn: #b45309; --pv-warn50: #fffbeb; --pv-info: #1d4ed8; --pv-info50: #eff6ff;
  --pv-sh1: 0 1px 2px rgba(23,10,12,.06); --pv-sh2: 0 6px 16px -6px rgba(23,10,12,.12), 0 2px 4px -2px rgba(23,10,12,.05); --pv-sh3: 0 24px 48px -12px rgba(23,10,12,.28);
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, 'Segoe UI', Arial, sans-serif; color: var(--pv-text); font-size: 14px; line-height: 1.5;
}
.pv *, .pv-modal * { box-sizing: border-box; }
.pv h1, .pv h2, .pv h3, .pv-modal h2, .pv-modal h3 { margin: 0 0 12px; letter-spacing: -.01em; color: var(--pv-text); }
.pv h1 { font-size: 24px; font-weight: 800; } .pv h3, .pv-modal h3 { font-size: 15px; font-weight: 700; } .pv-modal h2 { font-size: 18px; font-weight: 700; }
.pv a { color: var(--pv-red2); text-decoration: none; font-weight: 600; } .pv a:hover { text-decoration: underline; }
.pv-hidden { display: none !important; }
.pv-muted { color: var(--pv-muted); font-size: 13px; }
.pv-ic { flex: none; vertical-align: -3px; }
.pv-clamp { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pv-title { margin-bottom: 18px; } .pv-title h1 { margin: 0; } .pv-title p { margin: 4px 0 0; color: var(--pv-muted); }

/* sekmeler */
.pv-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pv-tabs::-webkit-scrollbar { display: none; }
.pv-tabs a { color: #cdbfc0; padding: 12px 14px; font-weight: 600; font-size: 13.5px; display: flex; gap: 8px; align-items: center; white-space: nowrap; border-bottom: 3px solid transparent; text-decoration: none; }
.pv-tabs a:hover { color: #fff; text-decoration: none; }
.pv-tabs a.active { color: #fff; border-bottom-color: var(--pv-red); }
.pv-tabs a.active .pv-ic { color: #f87171; }
.pv-tabs-inline { background: linear-gradient(180deg, var(--pv-ink2), var(--pv-ink)); border-radius: 14px; padding: 0 10px; margin-bottom: 18px; }

/* kartlar */
.pv-card { background: var(--pv-surface); border: 1px solid var(--pv-line); border-radius: 14px; padding: 18px; margin-bottom: 18px; box-shadow: var(--pv-sh1); }
.pv-cardh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pv-cardh h3 { margin: 0; } .pv-cardh a { font-size: 13px; }
.pv-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 18px; }
.pv-g2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; margin-bottom: 18px; }
.pv-g2 > .pv-card, .pv-g2 > div > .pv-card:last-child { margin-bottom: 0; }
.pv-g2 > div > .pv-card { margin-bottom: 18px; }
.pv-stat { background: var(--pv-surface); border: 1px solid var(--pv-line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--pv-sh1); }
.pv-stat .k { display: flex; align-items: center; gap: 8px; color: var(--pv-muted); font-size: 12.5px; font-weight: 600; }
.pv-stat .k .pv-ic { color: var(--pv-red); }
.pv-stat .v { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--pv-text); }
.pv-stat .v small { font-size: 15px; color: var(--pv-muted); font-weight: 600; }
.pv-stat .l { color: var(--pv-muted); font-size: 12.5px; margin-top: 4px; }
.pv-stat.warn .v { color: var(--pv-warn); } .pv-stat.bad .v { color: var(--pv-red2); }
.pv-empty { text-align: center; padding: 34px 16px; color: var(--pv-muted); } .pv-empty .pv-ic { color: var(--pv-faint); }
.pv-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pv-b-gray { background: #efeaea; color: #4b4142; } .pv-b-blue { background: var(--pv-info50); color: var(--pv-info); }
.pv-b-amber { background: var(--pv-warn50); color: var(--pv-warn); box-shadow: inset 0 0 0 1px #fde68a; } .pv-b-green { background: var(--pv-ok50); color: var(--pv-ok); box-shadow: inset 0 0 0 1px #a7f3d0; }
.pv-b-red { background: var(--pv-red50); color: var(--pv-red2); box-shadow: inset 0 0 0 1px var(--pv-red100); } .pv-b-purple { background: #f5f3ff; color: #6d28d9; }
.pv-bar { height: 8px; background: #efe9e9; border-radius: 99px; overflow: hidden; min-width: 80px; }
.pv-bar > div { height: 100%; background: var(--pv-grad); border-radius: 99px; }
.pv-bar.done > div { background: var(--pv-ok); } .pv-bar.late > div { background: #d97706; }
.pv-btn { font: inherit; font-weight: 600; font-size: 12.5px; border: 1px solid var(--pv-line2); background: var(--pv-surface); color: var(--pv-text); padding: 5px 11px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; }
.pv-btn:hover { border-color: #cbbcbc; }
.pv-link { border: 0; background: none; color: var(--pv-red2); padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
.pv-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.pv-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pv-chip { font: inherit; border: 1px solid var(--pv-line2); background: var(--pv-surface); border-radius: 99px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--pv-text2); cursor: pointer; }
.pv-chip b { color: var(--pv-muted); font-weight: 700; margin-left: 4px; }
.pv-chip.on { background: var(--pv-ink); color: #fff; border-color: var(--pv-ink); } .pv-chip.on b { color: #fca5a5; }
.pv-tw { overflow-x: auto; }
.pv-table { width: 100%; border-collapse: collapse; }
.pv-table th, .pv-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--pv-line); vertical-align: top; font-size: 13.5px; }
.pv-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--pv-muted); font-weight: 700; white-space: nowrap; background: var(--pv-subtle); }
.pv-table tr:last-child td { border-bottom: 0; }
.pv-table .r { text-align: right; font-variant-numeric: tabular-nums; }

/* hero */
.pv-hero { border-radius: 20px; color: #fff; padding: 28px 30px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-bottom: 18px; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(220,38,38,.55), transparent 65%), radial-gradient(500px 300px at 0% 100%, rgba(159,18,57,.35), transparent 60%), linear-gradient(135deg, var(--pv-ink2), var(--pv-ink)); box-shadow: var(--pv-sh3); }
.pv-hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.pv-hero > * { position: relative; z-index: 1; }
.pv .pv-hero h1 { font-size: 28px; margin: 10px 0 6px; line-height: 1.15; color: #fff; }
.pv-hero p { color: #e7dada; margin: 0; max-width: 640px; }
.pv-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-tag { display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.pv-tag.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.pv-hmeta { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 10px 32px; margin-top: 22px; justify-content: start; }
.pv-hmeta small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #c9b5b6; font-weight: 700; }
.pv-hmeta b { font-size: 15px; }
.pv-ring { text-align: center; } .pv-ring svg { display: block; margin: 0 auto; }
.pv-ring .lbl { font-size: 12px; color: #d8c6c7; font-weight: 600; margin-top: 6px; } .pv-ring .sub { font-size: 12px; color: #fca5a5; margin-top: 2px; font-weight: 600; }
.pv-timebar { margin-top: 18px; max-width: 560px; }
.pv-timebar .row { display: grid; grid-template-columns: 92px 1fr 44px; gap: 10px; align-items: center; font-size: 12px; color: #d8c6c7; font-weight: 600; margin-top: 6px; }
.pv-timebar .tb { height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.pv-timebar .tb i { display: block; height: 100%; border-radius: 99px; background: #fff; }
.pv-timebar .tb.work i { background: linear-gradient(90deg, #f87171, #ef4444); }
.pv-timebar .row b { color: #fff; text-align: right; }

/* akış, liste */
.pv-feed { display: grid; }
.pv-fi { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--pv-line); }
.pv-fi:last-child { border-bottom: 0; }
.pv-fic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--pv-red50); color: var(--pv-red2); }
.pv-fic.ok { background: var(--pv-ok50); color: var(--pv-ok); } .pv-fic.info { background: var(--pv-info50); color: var(--pv-info); } .pv-fic.ink { background: #f1ecec; color: var(--pv-ink); }
.pv-fi p { margin: 0; font-size: 13.5px; } .pv-fi p span { color: var(--pv-muted); } .pv-fi time { font-size: 12px; color: var(--pv-muted); }
.pv-lr { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--pv-line); align-items: center; }
.pv-lr:last-child { border-bottom: 0; }
.pv-lrm { min-width: 0; flex: 1; } .pv-lrm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ekip grafiği */
.pv-crew { display: flex; align-items: flex-end; gap: 2px; height: 130px; padding-top: 18px; border-bottom: 1px solid var(--pv-line2); }
.pv-ccol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.pv-cb { width: 100%; max-width: 22px; background: #e9b5b5; border-radius: 4px 4px 0 0; min-height: 2px; }
.pv-ccol.today .pv-cb { background: var(--pv-red); } .pv-ccol:hover .pv-cb { background: var(--pv-red2); }
.pv-cv { position: absolute; top: -18px; font-size: 11.5px; font-weight: 700; color: var(--pv-text2); }
.pv-tip { display: none; position: absolute; bottom: calc(100% + 6px); background: var(--pv-ink); color: #fff; font-size: 12px; padding: 5px 9px; border-radius: 6px; white-space: nowrap; z-index: 3; pointer-events: none; }
.pv-ccol:hover .pv-tip { display: block; }
.pv-cx { display: flex; gap: 2px; font-size: 10.5px; color: var(--pv-muted); margin-top: 5px; } .pv-cx span { flex: 1; text-align: center; }

/* gantt */
.pv-gantt { margin-top: 8px; }
.pv-grow, .pv-gantt-head { display: grid; grid-template-columns: 240px 1fr; }
.pv-grow { align-items: center; border-bottom: 1px solid var(--pv-line); min-height: 40px; }
.pv-gname { font-size: 13px; font-weight: 600; padding-right: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-gname small { display: block; font-weight: 500; color: var(--pv-muted); font-size: 11.5px; }
.pv-gtrack { position: relative; height: 40px; background-image: linear-gradient(90deg, var(--pv-line) 1px, transparent 1px); background-size: var(--gw, 10%) 100%; }
.pv-gbar { position: absolute; top: 12px; height: 16px; border-radius: 4px; background: #f3dede; overflow: hidden; }
.pv-gbar > div { height: 100%; background: var(--pv-grad); }
.pv-gbar.done > div { background: var(--pv-ok); } .pv-gbar.late { background: #fde7c7; } .pv-gbar.late > div { background: #d97706; }
.pv-gtoday { position: absolute; top: -4px; bottom: 0; width: 0; border-left: 2px dashed var(--pv-ink); z-index: 1; }
.pv-gantt-head { font-size: 11.5px; color: var(--pv-muted); font-weight: 600; }
.pv-months { position: relative; height: 20px; } .pv-months span { position: absolute; transform: translateX(2px); white-space: nowrap; }
.pv-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--pv-muted); margin-top: 12px; }
.pv-legend i { display: inline-block; width: 14px; height: 8px; border-radius: 3px; margin-right: 6px; vertical-align: 1px; }
.pv-legend i.pv-lg-today { background: none; border-left: 2px dashed var(--pv-ink); border-radius: 0; }

/* malzeme */
.pv-mats { display: grid; gap: 14px; }
.pv-mat { background: var(--pv-surface); border: 1px solid var(--pv-line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--pv-sh1); }
.pv-mat.late { border-color: #fcd9a6; box-shadow: inset 4px 0 0 #f59e0b, var(--pv-sh1); }
.pv-mtop { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.pv-mtop b { font-size: 15px; }
.pv-mmeta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--pv-text2); margin-top: 14px; align-items: center; }
.pv-mmeta span { display: inline-flex; gap: 6px; align-items: center; } .pv-mmeta .pv-ic { color: var(--pv-muted); } .pv-mmeta .grow { flex: 1; }
.pv-stepper { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 16px; }
.pv-step { position: relative; text-align: center; font-size: 11.5px; color: var(--pv-faint); font-weight: 600; padding-top: 24px; }
.pv-step::before { content: ''; position: absolute; top: 7px; left: -50%; right: 50%; height: 3px; background: var(--pv-line2); }
.pv-step:first-child::before { display: none; }
.pv-step i { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3px solid var(--pv-line2); z-index: 1; }
.pv-step small { display: block; font-weight: 500; font-size: 11px; color: var(--pv-muted); }
.pv-step.done { color: var(--pv-text2); } .pv-step.done::before { background: var(--pv-red); } .pv-step.done i { background: var(--pv-red); border-color: var(--pv-red); }
.pv-step.cur { color: var(--pv-red2); font-weight: 800; } .pv-step.cur::before { background: var(--pv-red); } .pv-step.cur i { border-color: var(--pv-red); box-shadow: 0 0 0 5px var(--pv-red100); }
.pv-step.final.done i { background: var(--pv-ok); border-color: var(--pv-ok); }
.pv-mini { display: flex; gap: 3px; margin-top: 6px; max-width: 160px; } .pv-mini i { height: 5px; flex: 1; border-radius: 3px; background: var(--pv-line2); }
.pv-mini i.on { background: var(--pv-red); } .pv-mini.done i.on { background: var(--pv-ok); }

/* rapor, zaman tüneli */
.pv-timeline { position: relative; padding-left: 26px; }
.pv-timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--pv-line2); }
.pv-tli { position: relative; margin-bottom: 18px; }
.pv-tli::before { content: ''; position: absolute; left: -23px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--pv-red); box-shadow: 0 0 0 4px var(--pv-red100); }
.pv-tli > .pv-card { margin-bottom: 0; }
.pv-rhead { margin-bottom: 10px; } .pv-rhead b { font-size: 15px; }
.pv-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--pv-muted); font-size: 12.5px; margin-top: 2px; } .pv-meta span { display: inline-flex; gap: 5px; align-items: center; }
.pv-report dl { margin: 0; display: grid; gap: 10px; }
.pv-report dt { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--pv-muted); }
.pv-report dd { margin: 2px 0 0; white-space: pre-wrap; }
.pv-report dd.pv-prob { background: var(--pv-warn50); border-left: 3px solid #f59e0b; padding: 8px 12px; border-radius: 0 8px 8px 0; }

/* fotoğraf, dosya */
.pv-gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.pv-photo { background: var(--pv-surface); border: 1px solid var(--pv-line); border-radius: 14px; overflow: hidden; box-shadow: var(--pv-sh1); transition: transform .15s, box-shadow .15s; }
.pv-photo:hover { transform: translateY(-2px); box-shadow: var(--pv-sh2); }
.pv-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; cursor: zoom-in; background: #eee; }
.pv-pinfo { padding: 9px 12px; font-size: 13px; } .pv-pinfo b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pv-pinfo span { color: var(--pv-muted); font-size: 12.5px; }
.pv-dayh { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; font-weight: 700; color: var(--pv-text2); }
.pv-dayh span { color: var(--pv-muted); font-weight: 500; font-size: 13px; }
.pv-dayh::after { content: ''; flex: 1; height: 1px; background: var(--pv-line2); }
.pv-files { display: grid; }
.pv-frow { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--pv-line); }
.pv-frow:last-child { border-bottom: 0; }
.pv-fext { width: 44px; height: 52px; border-radius: 8px; display: grid; place-items: end center; padding-bottom: 7px; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--pv-ink); }
.pv-x-pdf { background: var(--pv-red); } .pv-x-xls, .pv-x-xlsx, .pv-x-csv { background: #047857; } .pv-x-doc, .pv-x-docx { background: #1d4ed8; } .pv-x-dwg, .pv-x-dxf { background: #b45309; } .pv-x-zip, .pv-x-rar { background: #57534e; }
.pv-fname { font-weight: 700; word-break: break-word; }
.pv-fmeta { color: var(--pv-muted); font-size: 12.5px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.pv-fact { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* modal */
.pv-modal { position: fixed; inset: 0; background: rgba(23,10,12,.6); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; z-index: 1000; }
.pv-mbox { position: relative; background: #fff; border-radius: 20px; padding: 22px; width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; box-shadow: var(--pv-sh3); }
.pv-mbox.wide { max-width: 1000px; }
.pv-mclose { position: absolute; top: 10px; right: 10px; border: 0; background: #f1ecec; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; z-index: 3; color: var(--pv-ink); }
.pv-lb { position: relative; }
.pv-lb img { max-width: 100%; max-height: 72vh; display: block; margin: 0 auto; border-radius: 10px; }
.pv-lbn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.92); box-shadow: var(--pv-sh2); cursor: pointer; }
.pv-lbn.prev { left: 8px; } .pv-lbn.next { right: 8px; }
.pv-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }

@media (max-width: 980px) {
  .pv-hero { grid-template-columns: 1fr; padding: 22px; }
  .pv-ring { justify-self: start; display: flex; align-items: center; gap: 14px; text-align: left; }
  .pv-hmeta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .pv-g2 { grid-template-columns: 1fr; }
  .pv-grow, .pv-gantt-head { grid-template-columns: 120px 1fr; }
  .pv-step { font-size: 10px; } .pv-step small { display: none; }
  .pv-frow { grid-template-columns: 40px 1fr; } .pv-fact { grid-column: 1 / -1; justify-content: flex-start; }
}
