/* phone-history.css - KOMPAKTIŠKAS REŽIMAS */

/* --- FULL-WIDTH KONSTRUKCIJA --- */
.plt-history-outer-wrapper { width: 100%; overflow-x: hidden; }

.plt-stripe {
    padding: 40px 0; /* Sumažintas tarpas viršuje/apačioje */
}

.stripe-gray {     background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); }
.stripe-white { background-color: #ffffff; }

.plt-inner-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* --- ANTRAŠTĖ --- */
.plt-section-title {
    font-size: 16px; /* Sumažinta */
    font-weight: 900;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.plt-section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background: #2563eb;
}

.plt-item-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* --- TINKLELIS --- */
.plt-history-widget-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important; /* Mažesni tarpai tarp kortelių */
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* --- KORTELĖS DIZAINAS --- */
.plt-comment-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

/* Viršutinė juosta glaudesnė */
.plt-card-top-bar {
    background: #f8fafc;
    padding: 6px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 10px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
}

/* Kortelės vidus - SUMAŽINTI TARPAI */
.plt-card-body {
    display: flex;
    padding: 12px; /* Perpus mažiau paddingo */
    gap: 12px;
    align-items: center;
}

.plt-card-left {
    flex: 0 0 auto; /* Neleidžiam susitraukti */
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #f1f5f9;
    padding-right: 12px;
    min-width: 100px;
}

.plt-num-link {
    font-size: 16px; /* Kompaktiškesnis numeris */
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    margin-bottom: 5px;
}

.plt-history-tag {
    font-size: 9px;
    padding: 2px 8px;
    font-weight: 800;
    color: #fff !important;
    white-space: nowrap;
}

.tag-saugu { background: #10b981; }
.tag-galimas-sukcius { background: #ef4444; }
.tag-telemarketingas { background: #f59e0b; }
.tag-paslaugos { background: #3b82f6; }

.plt-card-right { flex: 1; min-width: 0; }

.plt-comment-text-scroll {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
    max-height: 40px; /* Tik 2-3 eilutės teksto */
    overflow: hidden; /* Paslepiam scrollbarą kompaktiškumui */
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* --- ADAPTYVUMAS TELEFONUI --- */

@media (max-width: 640px) {
    .plt-history-widget-list { 
        grid-template-columns: 1fr !important; /* Paliekam po vieną, bet jos bus labai žemos */
        gap: 10px !important;
    }

    .plt-card-body {
        flex-direction: row; /* NEBE vertikaliai, o horizontaliai telpa geriau */
        padding: 10px;
        align-items: center;
    }

    .plt-card-left {
        border-right: 1px solid #f1f5f9;
        border-bottom: none;
        padding-right: 10px;
        padding-bottom: 0;
        width: auto;
        min-width: 110px;
    }

    .plt-num-link { font-size: 15px; }

    .plt-card-right {
        text-align: left;
        padding-left: 5px;
    }

    .plt-stripe {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        padding: 20px 0;
    }
}

@media (max-width: 400px) {
    .plt-card-top-bar { font-size: 9px; padding: 4px 10px; }
    .plt-num-link { font-size: 14px; }
    .plt-card-left { min-width: 90px; }
}