﻿/* ══════════════════════════════════════════════════════════════
   hg-common.css  —  Hesaplama Modülü Ortak Stilleri
   Kullanım: ~/Content/assets/css/hg-common.css
   İlgili sayfalar:
     · BasvurulariHesapla/Index.cshtml
     · BasvurulariHesapla/FormHesaplamalari.cshtml
══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────
   KART
───────────────────────────────────────── */
.hg-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    margin-bottom: 16px;
}


/* ─────────────────────────────────────────
   BAŞLIK ŞERIDI
───────────────────────────────────────── */
.hg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.hg-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hg-icon-box {
    width: 40px;
    height: 40px;
    background: #f0f7ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2980b9;
    font-size: 18px;
    flex-shrink: 0;
}

.hg-form-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.hg-form-sub {
    font-size: 12px;
    color: #aaa;
    margin: 0;
    line-height: 1.4;
}


/* ─────────────────────────────────────────
   İSTATİSTİK ŞERİDİ  (FormHesaplamalari)
───────────────────────────────────────── */
.hg-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid #f0f0f0;
}

.hg-stat {
    padding: 14px 20px;
    border-right: 1px solid #f0f0f0;
}

.hg-stat:last-child {
    border-right: none;
}

.hg-stat-num {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #2980b9;
}

.hg-stat-num.green { color: #27ae60; }
.hg-stat-num.dark  { color: #2c3e50; }

.hg-stat-lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #aaa;
    margin-top: 4px;
}


/* ─────────────────────────────────────────
   TABLO
───────────────────────────────────────── */
.hg-table {
    margin: 0;
}

.hg-table thead th {
    font-size: 10px; 
    letter-spacing: .5px;
    color: #999;
    font-weight: 600;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0 !important;
    border-top: none !important;
    background: #fafafa;
}

.hg-table tbody td {
    padding: 11px 14px;
    vertical-align: middle !important;
    border-top: 1px solid #f5f5f5 !important;
    font-size: 13px;
    color: #444;
}

.hg-table tbody tr:hover td {
    background: #fafcff;
}


/* ─────────────────────────────────────────
   İŞLEM BUTONLARI
───────────────────────────────────────── */
.hg-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

.hg-btn {
    min-width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    text-decoration: none;
    outline: none;
    line-height: 1;
}

.hg-btn:focus { outline: none; text-decoration: none; }

/* Renk varyantları */
.hg-btn.v { color: #2980b9; }
.hg-btn.v:hover { background: #eaf4ff; border-color: #2980b9; color: #2980b9; }

.hg-btn.g { color: #27ae60; }
.hg-btn.g:hover { background: #eafaf1; border-color: #27ae60; color: #27ae60; }

.hg-btn.p { color: #c0392b; }
.hg-btn.p:hover { background: #fdecea; border-color: #c0392b; color: #c0392b; }

.hg-btn.u { color: #f39c12; }
.hg-btn.u:hover { background: #fef9e7; border-color: #f39c12; color: #f39c12; }

.hg-btn.d { color: #e74c3c; }
.hg-btn.d:hover { background: #fdecea; border-color: #e74c3c; color: #e74c3c; }

.hg-btn.o { color: #27ae60; }
.hg-btn.o:hover { background: #fdecea; border-color: #27ae60; }

/* ─────────────────────────────────────────
   SAYILAR
───────────────────────────────────────── */
.hg-num {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.hg-num.blu { color: #2980b9; }
.hg-num.grn { color: #27ae60; }
.hg-num.org { color: #e67e22; }

.hg-num-lbl {
    font-size: 10px;
    color: #bbb;
    margin-top: 1px;
}


/* ─────────────────────────────────────────
   NO ETİKETİ
───────────────────────────────────────── */
.hg-no {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}


/* ─────────────────────────────────────────
   TARİH
───────────────────────────────────────── */
.hg-t-main {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    line-height: 1.4;
}

.hg-t-saat {
    font-size: 11px;
    color: #bbb;
    line-height: 1.4;
}


/* ─────────────────────────────────────────
   DURUM  (FormHesaplamalari)
───────────────────────────────────────── */
.hg-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.hg-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hg-status.onaylandi       { color: #27ae60; }
.hg-status.onaylandi .dot  { background: #27ae60; }

.hg-status.taslak          { color: #f39c12; }
.hg-status.taslak .dot     { background: #f39c12; }

.hg-karar {
    font-size: 10px;
    color: #888;
    margin-top: 3px;
}


/* ─────────────────────────────────────────
   FİLTRE / AÇIKLAMA  (FormHesaplamalari)
───────────────────────────────────────── */
.hg-filtre-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eaf4ff;
    color: #2980b9;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #c5dffa;
}

.hg-filtre-tumu {
    font-size: 11px;
    color: #bbb;
}

.hg-aciklama {
    font-weight:normal;
    font-size: 9px;
    color: #888;
    margin-top: 4px;
}


/* ─────────────────────────────────────────
   PERSONEL TİPİ  (Index)
───────────────────────────────────────── */
.hg-tip {
    display: inline-block;
    background: #eaf4ff;
    color: #2980b9;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #c5dffa;
}


/* ─────────────────────────────────────────
   PAGER  (Index)
───────────────────────────────────────── */
.hg-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
    font-size: 11px;
    color: #888;
}

.hg-pager .btn {
    border-radius: 4px;
    height: 26px;
    width: 30px;
    padding: 0;
    font-size: 11px;
}

.hg-pager input[type=text] {
    width: 40px;
    height: 26px;
    text-align: center;
    font-size: 11px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 4px;
}

.hg-pager select {
    height: 26px;
    font-size: 11px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 2px;
}

.hg-pager-nav {
    display: flex;
    align-items: center;
    gap: 3px;
}


/* ─────────────────────────────────────────
   BOŞ DURUM
───────────────────────────────────────── */
.hg-empty {
    text-align: center;
    padding: 40px;
}

.hg-empty i {
    font-size: 36px;
    color: #ddd;
    display: block;
    margin-bottom: 10px;
}

.hg-empty p {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 14px;
}