/* notes-card — Görüşme notları modalı: kart listesi + iletişim bloğu.
   Tekil prefix "notes-card-". Metronic/Bootstrap 3 bilesenlerinin uzerine oturur;
   hicbir Metronic degiskenini/sinifini EZMEZ, yalnizca kendi prefiksi altinda kural tanimlar.
   Bu yuzden diger 6 not tipi ve panelin geri kalani etkilenmez. */

/* --- Kart izgarasi --------------------------------------------------------- */

.notes-card-grid {
    margin-top: 5px;
}

/* Her satir kendi icinde ikiser kart tasir (bkz. types/2/index.php array_chunk).
   Bootstrap 3'un kendi float izgarasi kullaniliyor; satir kapandigi icin farkli
   yukseklikteki kartlar bir sonraki satira takilmiyor. Flex YOK — bilincli tercih. */
.notes-card-col {
    margin-bottom: 15px;
}

.notes-card {
    display: block;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e7ecf1;
    border-radius: 4px;
    padding: 14px 16px;
    /* Iki katmanli golge: yakin/keskin katman kenari ayirir, genis/yumusak katman
       karti zeminden kaldirir. Tek katmanli golge ya bulanik ya sert gorunuyor. */
    box-shadow: 0 1px 2px rgba(31, 45, 61, .06),
                0 3px 10px rgba(31, 45, 61, .06);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
    position: relative;
}

.notes-card:hover {
    border-color: #cfd9e2;
    box-shadow: 0 2px 4px rgba(31, 45, 61, .08),
                0 8px 22px rgba(31, 45, 61, .12);
    transform: translateY(-1px);
}

/* Sol kenardaki ince serit kartlara ritim veriyor; rengi kategori rozetinden
   bagimsiz, notrdur ki kategori rengi tek vurgu olarak kalsin. */
.notes-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: #dbe3ea;
}

.notes-card:hover::before {
    background: #b9c6d2;
}

/* --- Baslik satiri --------------------------------------------------------- */

.notes-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f4f7;
}

/* Kategori rozeti rengini ColorsOfUI'nin uretttigi Metronic arka plan sinifi verir
   (bg-green, bg-red ...). Burada yalnizca bicim tanimlanir, RENK TANIMLANMAZ. */
.notes-card-category {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: #ffffff;
}

.notes-card-date {
    font-size: 12px;
    color: #90a4ae;
    white-space: nowrap;
}

/* --- Govde ----------------------------------------------------------------- */

.notes-card-body {
    display: block;
    color: #37474f;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-word;
}

.notes-card-body:hover,
.notes-card-body:focus {
    color: #2b6ca3;
    text-decoration: none;
}

/* --- Altbilgi -------------------------------------------------------------- */

.notes-card-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f1f4f7;
    font-size: 12px;
    color: #78909c;
}

.notes-card-meta i {
    margin-right: 3px;
}

.notes-card-reminder {
    color: #e08e0b;
    font-weight: 600;
}

/* --- Iletisim blogu (ekle/duzenle formlari) -------------------------------- */

.notes-card-contact {
    margin-top: 12px;
    padding: 12px 14px;
    background: #fbfcfd;
    border: 1px solid #e7ecf1;
    border-left: 3px solid #b8d4e8;
    border-radius: 4px;
    font-size: 12px;
    box-shadow: 0 1px 2px rgba(31, 45, 61, .05);
}

.notes-card-contact-title {
    font-weight: 600;
    color: #546e7a;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .3px;
}

.notes-card-contact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    padding: 4px 0;
    border-top: 1px solid #eef2f6;
}

.notes-card-contact-row:first-of-type {
    border-top: 0;
}

.notes-card-contact-role {
    min-width: 62px;
    font-weight: 600;
    color: #607d8b;
}

.notes-card-contact-name {
    color: #37474f;
}

.notes-card-contact-link {
    color: #2b6ca3;
    white-space: nowrap;
}

.notes-card-contact-link:hover {
    text-decoration: underline;
}

/* --- Dar ekran ------------------------------------------------------------- */

@media (max-width: 767px) {
    .notes-card-head {
        /* Kategori uzun olabiliyor; tarihi alta al. */
        flex-direction: column;
        align-items: flex-start;
    }

    .notes-card-foot {
        flex-direction: column;
        gap: 4px;
    }

    .notes-card-contact-row {
        /* Telefon/mail dokunma hedefleri alt alta daha rahat. */
        flex-direction: column;
        gap: 2px;
    }

    .notes-card-contact-link {
        padding: 4px 0;
    }
}
