/* ====================================================
   KLIENTO PROFILIS IR SUTARTYS STILIUS V2
   ==================================================== */

/* Pranešimai */
.tf-success-msg { padding: 15px 20px; background: rgba(16, 185, 129, 0.1); color: #10b981; border-radius: 12px; margin-bottom: 20px; border-left: 5px solid #10b981; font-weight: 600; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: opacity 0.3s; }
.tf-error-msg { padding: 15px 20px; background: rgba(239, 68, 68, 0.1); color: #ef4444; border-radius: 12px; margin-bottom: 20px; border-left: 5px solid #ef4444; font-weight: 600; }

/* Header ir Mygtukai */
.tf-profile-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.tf-profile-header h3 { margin: 0; font-size: 24px; font-weight: 800; color: var(--tf-text-heading); }
.tf-back-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--tf-primary); text-decoration: none; font-weight: 700; font-size: 13px; transition: color 0.2s; }
.tf-back-btn:hover { filter: brightness(0.8); text-decoration: underline; }

.tf-admin-chat-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; transition: all 0.2s; border: none; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.tf-admin-chat-btn.normal { background: var(--tf-bg-card); color: var(--tf-text-main); border: 1px solid var(--tf-border); }
.tf-admin-chat-btn.normal:hover { background: var(--tf-primary); color: white; border-color: var(--tf-primary); }
.tf-admin-chat-btn.unread { background: #ef4444; color: white; animation: pulse-red 2s infinite; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); } 70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* Kliento Info Blokas */
.tf-kliento-info { background: var(--tf-bg-card); padding: 25px 30px; border-radius: 16px; border: 1px solid var(--tf-border); margin-bottom: 35px; box-shadow: 0 4px 15px var(--tf-shadow); transition: all 0.3s; }
.tf-info-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--tf-border); padding-bottom: 15px; }
.tf-info-header h4 { margin: 0; font-size: 18px; font-weight: 800; color: var(--tf-text-heading); }
.tf-btn-edit { background: var(--tf-bg-box); border: 1px solid var(--tf-border); color: var(--tf-primary); padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.tf-btn-edit:hover { background: var(--tf-primary); color: white; border-color: var(--tf-primary); }

.tf-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; font-size: 14px; color: var(--tf-text-main); }
.tf-info-grid span { color: var(--tf-text-muted); display: inline-block; width: 130px; font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px; }
.tf-info-grid a { color: var(--tf-primary); text-decoration: none; font-weight: 600; }
.tf-info-grid a:hover { text-decoration: underline; }
@media (max-width: 600px) { .tf-info-grid { grid-template-columns: 1fr; } }

/* Redagavimo Forma */
.tf-edit-form { display: none; background: var(--tf-bg-box); padding: 25px; border-radius: 12px; border: 1px dashed var(--tf-border); margin-top: 15px; animation: fadeIn 0.3s ease-out; }
.tf-form-group { margin-bottom: 16px; }
.tf-form-group label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--tf-text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.tf-form-group input { width: 100%; padding: 12px 15px; border: 1px solid var(--tf-border); background: var(--tf-input-bg); color: var(--tf-text-main); border-radius: 8px; box-sizing: border-box; font-size: 14px; font-family: inherit; outline: none; transition: all 0.3s; }
.tf-form-group input:focus { border-color: var(--tf-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.tf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 600px) { .tf-form-grid { grid-template-columns: 1fr; } }

.tf-btn-save { background: var(--tf-primary); color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: all 0.2s; font-size: 13px; }
.tf-btn-save:hover { filter: brightness(0.9); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(37,99,235,0.2); }
.tf-btn-cancel { background: transparent; color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); padding: 10px 20px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: all 0.2s; font-size: 13px; }
.tf-btn-cancel:hover { background: rgba(239, 68, 68, 0.1); }

/* ================== MODERNŪS DOKUMENTŲ SĄRAŠAI (Kompaktiškos Kortelės) ================== */
.tf-section-title { font-size: 16px; font-weight: 800; margin: 0 0 15px 0; color: var(--tf-text-heading); border-bottom: 2px solid var(--tf-border); padding-bottom: 10px; }

.tf-docs-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }

.tf-doc-row-card { background: var(--tf-bg-card); border: 1px solid var(--tf-border); border-radius: 10px; padding: 14px 18px; box-shadow: 0 2px 6px rgba(0,0,0,0.02); display: flex; flex-direction: column; gap: 8px; transition: all 0.2s ease; }
.tf-doc-row-card:hover { border-color: var(--tf-primary); transform: translateX(3px); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

.tf-doc-title { margin: 0; font-size: 14px; font-weight: 800; color: var(--tf-text-heading); line-height: 1.3; width: 100%; }
.tf-doc-middle-row { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; justify-content: space-between; }
.tf-doc-price-status { display: flex; align-items: center; gap: 12px; }
.tf-doc-price { font-size: 15px; font-weight: 800; color: var(--tf-text-heading); white-space: nowrap; }

/* Mygtukų Grupė Kortelėje */
.tf-doc-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tf-inline-form { margin: 0; display: inline-flex; align-items: center; }

/* Vienodas stilius visiems mygtukams */
.tf-action-btn { background: var(--tf-bg-box); color: var(--tf-text-main); border: 1px solid var(--tf-border); padding: 6px 12px; border-radius: 6px; text-decoration: none; font-size: 12px; font-weight: 700; font-family: inherit; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; white-space: nowrap; }
.tf-action-btn:hover { filter: brightness(0.95); transform: translateY(-1px); }

/* Specifiniai mygtukų stiliai */
.btn-green { background: rgba(16, 185, 129, 0.1); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.btn-green:hover { background: #10b981; color: white; }
.btn-red { background: rgba(239, 68, 68, 0.1); color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }
.btn-red:hover { background: #ef4444; color: white; }
.btn-doc { background: var(--tf-bg-card); color: var(--tf-primary); border-color: var(--tf-primary); }
.btn-doc:hover { background: var(--tf-primary); color: white; }
.btn-gen { background: rgba(245, 158, 11, 0.1); color: #b45309; border-color: rgba(245, 158, 11, 0.3); }
.btn-gen:hover { background: #f59e0b; color: white; border-color: #f59e0b; }
.btn-notify { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; border-color: rgba(139, 92, 246, 0.3); }
.btn-notify:hover { background: #8b5cf6; color: white; }
.btn-delete { background: var(--tf-bg-box); color: #ef4444; border-color: var(--tf-border); padding: 6px 8px; }
.btn-delete:hover { background: #ef4444; color: white; border-color: #ef4444; }

.tf-doc-meta { font-size: 12px; color: var(--tf-text-muted); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 2px; }

.tf-empty { padding: 25px; text-align: center; color: var(--tf-text-muted); font-size: 14px; background: var(--tf-bg-card); border: 2px dashed var(--tf-border); border-radius: 10px; margin-bottom: 20px; font-weight: 500; }