.bwmp-st{font-family:Arial,sans-serif}.bwmp-st .bwmp-card{background:#fff;padding:24px;border-radius:14px;box-shadow:0 6px 20px rgba(0,0,0,.06);margin-bottom:30px}.bwmp-st input,.bwmp-st select,.bwmp-st textarea{width:100%;padding:14px;border:1px solid #ddd;border-radius:10px;margin-bottom:14px;font-size:15px}.bwmp-st textarea{min-height:120px}.bwmp-st button{background:#fecc00;color:#000;border:none;padding:12px 20px;border-radius:10px;font-weight:600;cursor:pointer}.bwmp-st table{width:100%;border-collapse:collapse;background:#fff}.bwmp-st th{background:#000;color:#fff;padding:14px;text-align:left}.bwmp-st td{padding:14px;border-bottom:1px solid #eee}.bwmp-badge{padding:6px 12px;border-radius:20px;font-size:13px;font-weight:600}.st-open{background:#e6f9ed;color:#1a7f37}.st-progress{background:#fff4e5;color:#b26a00}.st-closed{background:#fdecea;color:#b42318}.bwmp-stats{display:flex;gap:15px;margin:20px 0}.bwmp-stats .card{flex:1;background:#fff;padding:18px;border-radius:12px;box-shadow:0 4px 15px rgba(0,0,0,.05);font-weight:600}.bwmp-stats .card span{float:right;font-size:20px}.bwmp-tabs{margin:15px 0}.bwmp-tabs button{background:#eee;border:0;padding:10px 15px;margin-right:8px;border-radius:8px;cursor:pointer}.bwmp-thumb{width:55px!important;height:55px!important;object-fit:cover!important;border-radius:7px;margin-right:5px;cursor:pointer;border:1px solid #ddd}.bwmp-success{background:#e6f9ed;color:#1a7f37;padding:14px 18px;border-radius:10px;margin-bottom:15px;font-weight:600}
.bwmp-admin-wrap .bwmp-ticket-detail{max-width:1200px}.bwmp-ticket-meta{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:20px 0}.bwmp-ticket-meta div{background:#fff;border:1px solid #ddd;border-radius:10px;padding:14px}.bwmp-ticket-meta strong,.bwmp-ticket-meta span{display:block}.bwmp-ticket-meta strong{margin-bottom:7px}.bwmp-original-ticket{background:#fff;border:1px solid #ddd;border-radius:12px;padding:20px;margin-bottom:25px}.bwmp-ticket-images{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.bwmp-ticket-images img{width:100px;height:100px;object-fit:cover;border-radius:8px;border:1px solid #ddd}.bwmp-history{display:flex;flex-direction:column;gap:12px;margin-bottom:25px}.bwmp-history-item{background:#fff;border:1px solid #ddd;border-left:5px solid #2271b1;border-radius:8px;padding:15px}.bwmp-history-item.is-note{border-left-color:#dba617;background:#fffaf0}.bwmp-history-head{display:flex;justify-content:space-between;gap:20px;margin-bottom:10px}.bwmp-history-head strong{font-size:14px}.bwmp-history-head span{color:#666;font-size:12px}.bwmp-history-message{white-space:normal;line-height:1.6}.bwmp-response-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.bwmp-response-card{background:#fff;border:1px solid #ddd;border-radius:12px;padding:20px}.bwmp-response-card textarea{width:100%;box-sizing:border-box}.bwmp-note-card{background:#fffaf0}.bwmp-admin-wrap table{margin-top:10px}.bwmp-admin-wrap .widefat td{vertical-align:top}@media(max-width:900px){.bwmp-ticket-meta{grid-template-columns:1fr 1fr}.bwmp-response-grid{grid-template-columns:1fr}}
/* Hospital-facing admin replies */
.bwmp-ticket-link{color:#1d4ed8;text-decoration:none;font-weight:600}.bwmp-ticket-link:hover{text-decoration:underline}
.bwmp-reply-hint{margin-top:15px;color:#666;font-size:14px}.bwmp-back-link{display:inline-block;margin-bottom:15px;text-decoration:none;font-weight:600}
.bwmp-ticket-detail-card{background:#fff;border:1px solid #ddd;border-radius:14px;padding:24px;box-shadow:0 6px 20px rgba(0,0,0,.05)}
.bwmp-ticket-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid #eee;padding-bottom:20px}
.bwmp-ticket-number{font-size:13px;color:#777;margin-bottom:7px}.bwmp-ticket-detail-head h2{margin:0;font-size:24px;line-height:1.3}
.bwmp-ticket-meta-public{display:flex;gap:30px;padding:18px 0}.bwmp-ticket-meta-public div{display:flex;flex-direction:column;gap:5px}.bwmp-ticket-meta-public strong{font-size:12px;color:#777;text-transform:uppercase}
.bwmp-message-card{border:1px solid #e1e1e1;border-radius:12px;padding:18px;margin-bottom:15px}.bwmp-message-card.original{background:#fafafa}
.bwmp-message-card.admin-reply{background:#f2fbf5;border-left:4px solid #1a7f37}.bwmp-message-label{font-size:14px;font-weight:700;margin-bottom:5px}
.bwmp-message-author{font-size:12px;color:#777;margin-bottom:12px}.bwmp-message-body{font-size:15px;line-height:1.7;color:#222}
.bwmp-conversation-title{margin:28px 0 12px}.bwmp-no-replies,.bwmp-ticket-notice{padding:18px;border-radius:10px;background:#f5f5f5;color:#666}
@media(max-width:700px){.bwmp-ticket-detail-head{flex-direction:column}.bwmp-ticket-meta-public{flex-direction:column;gap:12px}.bwmp-ticket-detail-card{padding:16px}}

.bwmp-latest-reply{margin-top:8px;padding:8px 10px;border-radius:8px;background:#f2fbf5;color:#245b35;font-size:12px;line-height:1.45}
.bwmp-latest-reply strong{font-weight:700}

/* v1.4.0 hospital table fixes */
#bwmpTable th,
#bwmpTable thead th {
    background: #000000 !important;
    color: #ffffff !important;
    text-shadow: none !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    padding: 14px !important;
    border-color: #333333 !important;
    -webkit-text-fill-color: #ffffff !important;
}

#bwmpTable th * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

#bwmpTable td {
    color: #222222;
    vertical-align: top;
}

.bwmp-latest-reply {
    margin-top: 10px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    background: #f2fbf5 !important;
    color: #245b35 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.bwmp-latest-reply strong {
    color: #176b38 !important;
    font-weight: 700 !important;
}

.bwmp-latest-reply .bwmp-reply-text {
    color: #245b35 !important;
    -webkit-text-fill-color: #245b35 !important;
}

.bwmp-latest-reply br {
    display: block;
}

@media (max-width: 900px) {
    #bwmpTable {
        display: table;
        width: 100% !important;
        min-width: 850px;
    }

    .bwmp-st {
        overflow-x: auto;
    }
}
