/* Isuzu EPC (web) — EQ-Hit düzenine öykünen stiller */
* { box-sizing: border-box; }
body { margin: 0; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #1a1a1a; background: #fff; }
a { color: #14487f; text-decoration: none; }
a:hover { text-decoration: underline; }
img { border: 0; }
.dim { color: #8a93a0; }

/* üst siyah bar */
.topbar { display: flex; align-items: center; background: #2b2b2b; color: #ddd; height: 30px; padding: 0 10px; }
.topbar .tabs .tab { display: inline-block; background: #3d3d3d; color: #fff; padding: 4px 16px; border-top-left-radius: 4px; border-top-right-radius: 4px; font-size: 12px; }
.topbar .tabs .tab.active { background: #1f1f1f; }
.topbar .topmenu { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.topbar .topmenu a { color: #eaeaea; font-weight: bold; }
.topbar .topmenu .dim { color: #8a8a8a; }

/* mavi araç çubuğu */
.toolbar { background: linear-gradient(#7089a6, #5f7a97); padding: 8px 10px; border-bottom: 1px solid #4d647d; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.vinbox { display: flex; gap: 0; }
.vinbox input { border: 1px solid #33475c; padding: 5px 8px; font-size: 12px; width: 260px; border-radius: 3px 0 0 3px; }
.vinbox button { border: 1px solid #33475c; border-left: 0; background: #eef1f4; cursor: pointer; padding: 5px 10px; border-radius: 0 3px 3px 0; }
.vinbox button:hover { background: #dbe4ee; }

/* kırıntı yolu */
.crumbbar { background: #fff; border-bottom: 1px solid #d6d6d6; padding: 6px 10px; font-weight: bold; color: #333; }
.crumbbar .back { text-decoration: none; color: #5f7a97; margin-right: 4px; }
.crumbbar .home { text-decoration: none; margin-right: 2px; }
.crumbbar a { color: #14487f; text-decoration: none; }
.crumbbar a:hover { text-decoration: underline; }
.crumbbar .sep { color: #7089a6; margin: 0 5px; font-weight: normal; font-size: 10px; }
.crumbbar .cur { color: #333; }

/* daraltma kutusu */
.filterbar { background: #eef0f2; border-bottom: 1px solid #d6d6d6; padding: 5px 10px; }
.filterbar input { width: 320px; border: 1px solid #b9c0c8; padding: 4px 8px; font-size: 12px; border-radius: 3px; font-style: italic; }

.content { padding: 14px; min-height: 380px; }
.note { color: #7a828d; font-size: 11px; margin-top: 12px; }
.bos { background: #fff8e1; border: 1px solid #e6d48a; padding: 10px; color: #6b5b00; }
.toast { background: #e3f6dd; border: 1px solid #7cc46a; color: #235d16; padding: 8px 10px; margin-bottom: 10px; font-weight: bold; }
.pagehead { font-size: 14px; font-weight: bold; color: #14487f; margin-bottom: 12px; }

/* tile ızgarası */
.tilegrid { display: flex; flex-wrap: wrap; gap: 16px; }
.tile { width: 208px; background: #fff; border: 1px solid #cfd4da; border-radius: 4px; overflow: hidden; color: #1a1a1a; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.tile:hover { border-color: #7089a6; box-shadow: 0 2px 6px rgba(0,0,0,.12); text-decoration: none; }
.tileimg { height: 176px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 8px; }
.tileimg img { max-width: 100%; max-height: 160px; }
.tileimg .noimg { color: #b6bcc4; font-size: 22px; font-weight: bold; }
.tilecat, .tilecatlg { background: linear-gradient(#f3f6f9, #e4eaf0); color: #365; font-size: 30px; font-weight: bold; color: #56708c; }
.tilecap { border-top: 1px solid #e0e4e8; background: #f6f7f9; padding: 7px 9px; font-weight: normal; color: #2b2b2b; text-align: center; font-size: 12px; line-height: 1.35; }
.tilecap .code { font-weight: bold; color: #14487f; }
.tilecap .sub { display: block; font-weight: normal; color: #8a93a0; font-size: 10px; margin-top: 2px; }
.tile.empty { opacity: .6; }

/* filtre özelliği sekmeleri (A-F: motor vb.) */
.oz-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.oz-tab { cursor: pointer; border: 1px solid #b9c0c8; background: #eef1f4; color: #33475c; font-size: 11px; padding: 4px 10px; border-radius: 3px 3px 0 0; }
.oz-tab:hover { background: #dbe4ee; }
.oz-tab.on { background: #14487f; color: #fff; border-color: #0f3a68; font-weight: bold; }
.ptable th.ozcol, .ptable td.ozcol { text-align: center; width: 24px; color: #14487f; font-weight: bold; border-left: 1px solid #edf0f3; }
.ptable td.ozcol { color: #c0392b; }
.ptable .ozcol.hl { background: #fff2a8; }

/* çizim gezgini (birden çok çizimde: select + ◀ ▶) */
.cizim-nav { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 6px 8px; background: #eef1f4; border: 1px solid #d0d5db; border-radius: 4px; width: fit-content; }
.cizim-nav button { cursor: pointer; border: 1px solid #b9c0c8; background: #fff; color: #14487f; font-weight: bold; padding: 3px 11px; border-radius: 3px; font-size: 12px; }
.cizim-nav button:hover { background: #dbe4ee; }
.cizim-nav select { border: 1px solid #b9c0c8; padding: 3px 6px; font-size: 12px; border-radius: 3px; min-width: 170px; }
.cizim-nav .cn-count { margin-left: 4px; font-size: 11px; }

/* sayfa detay: illüstrasyon + parça tablosu (EQ-Hit split) */
.detail { display: flex; gap: 14px; align-items: flex-start; border: 1px solid #d0d5db; border-radius: 4px; background: #fff; margin-bottom: 14px; }
.det-img { flex: 0 0 52%; max-width: 52%; padding: 10px; border-right: 1px solid #e2e6ea; text-align: center; }
.det-img img { max-width: 100%; height: auto; }
.det-img .noimg.big { color: #b6bcc4; padding: 60px 0; }

/* çizim + balon (callout) overlay */
.imgwrap { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.imgwrap .cizim-img { display: block; max-width: 100%; height: auto; }
.balon-overlay { position: absolute; inset: 0; pointer-events: none; }
.balon-mark {
    position: absolute; transform: translate(-50%, -50%);
    min-width: 16px; height: 16px; padding: 0 3px; line-height: 15px;
    box-sizing: border-box; border: 1px solid #a03024; border-radius: 8px;
    background: rgba(255,255,255,.82); color: #c0392b;
    font-family: Verdana, sans-serif; font-size: 10px; font-weight: bold; text-align: center;
    cursor: pointer; pointer-events: auto; white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(255,255,255,.6); opacity: 0; transition: opacity .12s;
}
.imgwrap.ready .balon-mark { opacity: .9; }
.balon-mark:hover { background: #c0392b; color: #fff; z-index: 3; }
.balon-mark.on { background: #c0392b; color: #fff; z-index: 4; box-shadow: 0 0 0 2px #fff2a8, 0 0 0 3px #c0392b; }
.balon-mark.hoverco { background: #c0392b; color: #fff; z-index: 3; }
.imgwrap.hasactive .balon-mark:not(.on) { opacity: .35; }

/* balon tooltip (parça adı) */
.balon-tip {
    position: absolute; transform: translate(-50%, -100%); margin-top: -10px;
    z-index: 10; pointer-events: none; max-width: 240px; line-height: 1.35;
    background: #fffbe6; border: 1px solid #d9c56a; border-radius: 4px;
    padding: 5px 8px; font-size: 11px; color: #333; text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.balon-tip b { color: #c0392b; }
.balon-tip .tp { font-family: Consolas, monospace; font-weight: bold; color: #14487f; }
.det-tbl { flex: 1; min-width: 0; padding: 6px; max-height: 620px; overflow: auto; }

/* parça tablosu */
.ptable { width: 100%; border-collapse: collapse; font-size: 11px; }
.ptable.wide { max-width: 900px; }
.ptable th { background: #eef1f4; color: #33475c; text-align: left; padding: 5px 8px; border-bottom: 2px solid #c4cdd6; position: sticky; top: 0; }
.ptable td { padding: 4px 8px; border-bottom: 1px solid #edf0f3; }
.ptable tr:hover td { background: #f2f7fc; }
.ptable tr.rowlink { cursor: pointer; }
.ptable .callout { text-align: center; font-weight: bold; color: #c0392b; width: 48px; }
.ptable .co-click { cursor: pointer; }
.ptable .co-click:hover { text-decoration: underline; }
.ptable tr.hl td { background: #fff2a8 !important; }
.ptable tr.hl .callout { color: #7a1c12; }

/* balon endeksi şeridi */
.balon-index { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px; background: #eef1f4; border: 1px solid #d0d5db; border-bottom: 0; outline: none; }
.balon-index:focus { box-shadow: inset 0 0 0 2px #7089a6; }
.balon-index .balon-label { font-weight: bold; color: #55606c; margin-right: 4px; font-size: 11px; }
.balon-chip { min-width: 26px; padding: 2px 7px; border: 1px solid #b9c0c8; background: #fff; color: #c0392b; font-weight: bold; border-radius: 3px; cursor: pointer; font-size: 11px; }
.balon-chip:hover { background: #dbe4ee; }
.balon-chip.on { background: #c0392b; color: #fff; border-color: #a03024; }
.ptable .pn { font-family: Consolas, "Courier New", monospace; font-weight: bold; color: #14487f; }
.ptable .encname { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Consolas, monospace; font-size: 10px; color: #9aa2ad; }
.ptable td.appl { white-space: nowrap; color: #555; font-family: Consolas, "Courier New", monospace; }
/* satır süzme: oz-hide = A-F sekmesi, tf-hide = üstteki daraltma kutusu (ikisi birlikte çalışır) */
.ptable tbody tr.corow.oz-hide, .ptable tbody tr.corow.tf-hide { display: none; }

/* aksiyon çubuğu */
.actionbar { margin-top: 10px; padding: 10px; background: #eef0f2; border: 1px solid #d6d6d6; border-radius: 4px; display: flex; gap: 12px; align-items: center; }
.actionbar button, .toolbar button, form button { cursor: pointer; }
.actionbar button { background: #14487f; color: #fff; border: 0; font-weight: bold; padding: 7px 16px; border-radius: 3px; }
.actionbar button:hover { background: #0f3a68; }
.ptable button { background: #eef1f4; border: 1px solid #b9c0c8; padding: 2px 8px; border-radius: 3px; }

/* alt durum çubuğu */
.statusbar { background: #eceef0; border-top: 1px solid #d6d6d6; padding: 5px 10px; color: #55606c; font-size: 11px; }
.statusbar .right { float: right; }
