/* Zjednodušené CSS styly pro emailová tlačítka */

.email-buttons-wrapper {
    display: grid;
    gap: 3px;
    flex-wrap: wrap;
}

.btn-send-email {
border: none;
  padding: 4px 6px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 9px !important;
  font-weight: bold;
  color: white;
  min-width: 25px;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-send-email:hover:not(:disabled) {
    opacity: 0.8;
    transform: translateY(-1px);
}

.btn-send-email:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Specifické barvy pro pobočky */
.btn-send-email[data-branch="praha"] {
    background-color: #BCB8D6;
}

.btn-send-email[data-branch="cb"] {
    background-color: #9BD1E6;
}

.btn-send-email[data-branch="plzen"] {
    background-color: #AED29C;
}

.btn-send-email[data-branch="petr"] {
    background-color: #FFC107;
    color: #000; /* Černý text pro žlutou */
}

/* Odeslané tlačítko */
.btn-send-email.sent {
    background-color: #28a745 !important;
    color: white !important;
}

/* Status sloupec */
.email-status-wrapper {
    font-size: 11px;
    line-height: 1.3;
}

.status-sent {
    color: #28a745;
    font-weight: bold;
    display: block;
}

.status-pending {
    color: #6c757d;
}

/* Responsivní design */
@media (max-width: 768px) {
    .btn-send-email {
        font-size: 10px;
        padding: 3px 6px;
        min-width: 30px;
    }
    
    .email-buttons-wrapper {
        gap: 2px;
    }
}

/* Přizpůsobení pro wpDataTables */
.wpdt-c .email-buttons-wrapper,
.wpdt-c .email-status-wrapper {
    text-align: left;
}

.wpdt-c td {
    vertical-align: middle;
}

/* Styly pro popup poznámek */
.note-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: none;
}

.note-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
}

.note-popup-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.note-popup-header h3 {
    margin: 0;
    color: #495057;
    font-size: 18px;
}

.note-popup-customer {
    font-size: 14px;
    color: #6c757d;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.note-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-popup-close:hover {
    color: #FC6722; 
     background: red;
}

.note-popup-content {
    padding: 20px;
    overflow-y: auto;
    max-height: 60vh;
}

.note-popup-content p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

/* Kurzor pointer pro kliknutelné ikony */
img[title*="poznámku"] {
    cursor: pointer;
}

img[title*="poznámku"]:hover {
    opacity: 0.8;
}

