.crm-proje-board {
    width: 100%;
    padding: 6px 8px;
}

/* Mobilde sürükleme sırasında pull-to-refresh'i engelle */
body.crm-dragging-active {
    touch-action: none;
    -webkit-overflow-scrolling: touch;
}

body.crm-dragging-active * {
    -webkit-user-select: none;
    user-select: none;
}

.crm-proje-ayar-alani {
    margin-bottom: 8px;
}

.crm-proje-ayar-alani .row.align-items-center {
    display: flex;
    align-items: center;
}

.crm-proje-baslik {
    display: flex;
    align-items: center;
    margin: 0;
    line-height: 1.2;
}

.crm-proje-baslik .crm-isim-text {
    margin: 0;
}

.crm-kard {
    background: #f7f7f7;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
}

.crm-kard-body {
    padding: 3px;
}

.crm-kard-header {
    padding: 8px 10px;
    background: #4f4f50;
    border-bottom: 1px solid #e6e9ed;
    color: #fff;
    font-weight: 900;
}

.crm-kard-footer {
    padding: 8px 10px;
    border-top: 1px solid #e6e9ed;
    background: #fdfefe;
}

.crm-proje-baslik .crm-isim-input {
    display: none;
}

.crm-isim-alani .crm-isim-input {
    display: none;
}

.crm-isim-input.crm-show {
    display: block;
}

.crm-tablolar-wrap {
    width: 100%;
}

.crm-tablolar-sortable {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.crm-tablo {
    width: 100%;
    min-height: 320px;
}

.crm-tablo-drag,
.crm-liste-drag {
    cursor: move;
    color: #fff;
}

.crm-liste-sortable {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 60px;
    padding: 6px 4px;
    border: 1px dashed transparent;
}

.crm-liste-sortable.crm-liste-horizontal {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    cursor: grab;
}

.crm-liste-sortable.crm-liste-wrap {
    flex-wrap: wrap;
    overflow: visible;
}

.crm-liste-sortable.crm-liste-horizontal.dragging {
    cursor: grabbing;
    user-select: none;
}

.cari-esleme-modal .cari-card {
    border-radius: 6px;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cari-esleme-modal .cari-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.cari-esleme-modal .cari-card-body {
    padding: 12px 14px;
}

.cari-esleme-modal .cari-card-actions {
    padding: 10px 14px 14px 14px;
}

.cari-esleme-modal .btn.fullw {
    width: 100%;
}

.cari-esleme-modal.compact .cari-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0 12px 0;
    border-bottom: 1px solid #e6e9ed;
}

.cari-esleme-modal.compact .cari-modal-search {
    display: flex;
    gap: 8px;
    min-width: 260px;
}

.cari-esleme-modal.compact .cari-modal-body {
    padding-top: 8px;
}

.cari-esleme-modal.compact .cari-modal-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #e6e9ed;
}

.crm-liste {
    width: 260px;
    min-height: var(--crm-liste-min-height, auto);
    min-width: var(--crm-liste-min-width, 200px);
    flex: 0 0 auto;
}

/* Liste kartında "Yeni Kart" alanı her zaman en altta dursun */
.crm-liste.crm-kard {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.crm-liste.crm-kard > .crm-kard-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.crm-liste.crm-kard > .crm-kard-footer {
    margin-top: auto;
}

.crm-liste-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 50px;
    padding: 6px 4px;
    border: 1px dashed transparent;
    font-size: 16px;
}

.crm-item {
    border: 1px solid #505050;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.crm-item.crm-item-dragging {
    transform: scale(1.05) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    opacity: 0.9;
    z-index: 999999 !important;
    transition: none !important;
}

.crm-item.crm-item-trash-hover {
    border: 2px solid #dc2626 !important;
    background: rgba(220, 38, 38, 0.18) !important;
}

.crm-item.crm-item-pinned {
    background: #fef9c3 !important;
    border-color: #f59e0b !important;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2);
}

.crm-liste-sil-btn.crm-trash-active i {
    background: rgba(220, 38, 38, 0.12) !important;
    border-color: #dc2626 !important;
}

.crm-item .crm-isim-alani {
    padding: 6px 10px;
}

.crm-item-isim-wrap
{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

.crm-item-gorusme-badge
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: #e0f2fe;
    color: #0369a1;
    flex-shrink: 0;
    margin-top: 1px;
}

.crm-item-gorusme-badge i
{
    font-size: 12px;
}

.crm-empty-state {
    padding: 16px;
}

.crm-yeni-tablo-group .crm-yeni-tablo-input,
.crm-yeni-liste-input,
.crm-yeni-item-input {
    border-radius: 6px;
}

.crm-yeni-tablo-group {
    position: relative;
}

.crm-yeni-tablo-input {
    padding-right: 52px;
}

.crm-yeni-tablo-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 25px;
    width: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.crm-isim-input {
    margin-top: 2px;
}

.shadow-xxs {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.crm-liste-placeholder {
    position: relative;
    height: auto;
    width: 260px;
    min-width: var(--crm-liste-min-width, 260px);
    min-height: var(--crm-liste-min-height, 90px);
    border: 0px dashed #0ea5e9;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.08);
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.10);
    margin: 0;
}

.crm-liste-sortable.crm-liste-horizontal .crm-liste-placeholder::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 10px;
    bottom: 10px;
    width: 6px;
    border-radius: 2px;
    background: #fdfdfd;
}

.crm-item-placeholder {
    height: 42px;
    width: 100%;
    border: 2px dashed #c8d1dc;
    background: #f8fafc;
    margin: 4px 0;
}

.crm-yeni-liste-group {
    position: relative;
    width: 240px;
}

.crm-yeni-liste-input {
    padding-right: 46px;
}

.crm-yeni-liste-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 25px;
    width: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #333;
}

.crm-yeni-item-group {
    position: relative;
}

.crm-yeni-item-input {
    padding-right: 46px;
}

.crm-yeni-item-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 25px;
    width: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.crm-tablo-ust-aksiyon {
    gap: 10px;
}

.crm-tablo-actions .btn {
    min-width: 34px;
    height: 32px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.crm-tablo-ayarli {
    background: var(--crm-tablo-bg-color, #fff);
}

.crm-tablo-ayarli .crm-kard-header {
    background: var(--crm-tablo-header-color, #f9fafb);
    color: var(--crm-tablo-header-text-color, inherit);
}

.crm-tablo-ayarli .crm-kard-body {
    max-height: var(--crm-tablo-max-height, none);
    overflow-y: auto;
}

.crm-liste-actions .btn {
    min-width: 30px;
    height: 28px;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.crm-liste-actions .btn.btn-outline-danger {
    color: #a94442;
}

@media (max-width: 576px)
{
    .crm-tablo > .crm-kard-header
    {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
    }

    .crm-tablo > .crm-kard-header > .crm-tablo-ust-aksiyon
    {
        width: 100%;
        flex: 1 1 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .crm-tablo > .crm-kard-header > .crm-tablo-ust-aksiyon .crm-yeni-liste-group
    {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    .crm-tablo > .crm-kard-header > .crm-tablo-ust-aksiyon .crm-yeni-liste-input
    {
        width: 100%;
        font-size: 13px;
    }

    .crm-tablo > .crm-kard-header > .crm-tablo-ust-aksiyon .crm-tablo-actions
    {
        flex: 0 0 auto;
    }

    /* Mobilde kartlar için uzun basma görsel geri bildirimi */
    .crm-item:active:not(.crm-item-dragging)
    {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Teklif listesi item seçili durumu */
.crm-teklif-list-item.crm-teklif-selected
{
    border: 3px solid #0ea5e9 !important;
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2);
}

/* CRM hatırlatıcı - form sol / personel sağ yan yana */
.crm-hatirlatici-blok .card-body > .row
{
    display: flex;
    flex-wrap: nowrap;
}

.crm-hatirlatici-blok .crm-hatirlatici-form-sol
{
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
}

.crm-hatirlatici-blok .crm-hatirlatici-personel-sag
{
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
}

@media (max-width: 576px)
{
    .crm-hatirlatici-blok .card-body > .row
    {
        flex-wrap: wrap;
    }
    .crm-hatirlatici-blok .crm-hatirlatici-form-sol,
    .crm-hatirlatici-blok .crm-hatirlatici-personel-sag
    {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* CRM hatırlatıcı personel listesi - kompakt ve sade tasarım */
.crm-hatirlatici-personel-wrap
{
    max-height: 380px;
    overflow-y: auto;
}

.crm-personel-list-baslik
{
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}

.crm-personel-listesi-items
{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.crm-personel-item
{
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 10px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.crm-personel-item:hover
{
    background: #f8fafc;
    border-color: #d1d5db;
}

.crm-personel-item-isim
{
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.crm-personel-item-contacts
{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.crm-personel-contact-row
{
    margin: 0 !important;
    min-height: 24px;
}

.crm-personel-contact-label
{
    font-size: 11px;
    color: #6b7280;
}

/* crm-personel-item içinde ufak on/off butonları */
.crm-personel-item .crm-personel-onoff-xs .onoff-option
{
    padding: 4px 5px !important;
    font-size: 12px !important;
    min-height: 20px;
    line-height: 1.2;
}

/* Her satıra ait gönder butonu sağ aşağıda, absolute - tek buton toggle */
.crm-personel-item .crm-personel-mail-row,
.crm-personel-item .crm-personel-sms-row
{
    position: relative;
    padding-right: 75px;
    min-height: 28px;
}

.crm-personel-item .crm-personel-mail-row .crm-personel-onoff-xs,
.crm-personel-item .crm-personel-sms-row .crm-personel-onoff-xs,
.crm-personel-item .crm-personel-onoff-toggle
{
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0 !important;
}

