.nd-ticket-bell{position:relative;width:42px;height:42px;border:1px solid #dbe5f2;border-radius:14px;background:#fff;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 6px 18px rgba(15,23,42,.05)}
.nd-ticket-bell-icon{font-size:18px}.nd-ticket-badge{position:absolute;top:-6px;right:-6px;min-width:19px;height:19px;padding:0 4px;border-radius:10px;background:#ef4444;color:#fff;font:800 10px/19px Tahoma;text-align:center;border:2px solid #fff}
.nd537-tickets-view{padding:16px 14px 28px;overflow:auto}.nd537-tickets-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.nd537-tickets-head small{display:block;color:#94a3b8;font-size:11px}.nd537-tickets-head h3{margin:3px 0 0;font-size:18px;color:#0f172a}.nd537-new-ticket{border:1px solid #dbeafe;background:#eff6ff;color:#2563eb;border-radius:12px;padding:9px 12px;font-weight:800;cursor:pointer}
.nd537-ticket-list{display:grid;gap:10px}.nd537-ticket-card{width:100%;display:flex;align-items:center;gap:10px;text-align:right;border:1px solid #e2e8f0;background:#fff;border-radius:16px;padding:13px;cursor:pointer}.nd537-ticket-card.new{border-color:#93c5fd;background:#f8fbff}.nd537-ticket-state{width:9px;height:9px;border-radius:50%;background:#94a3b8;flex:0 0 auto}.nd537-ticket-card.new .nd537-ticket-state{background:#2563eb;box-shadow:0 0 0 4px #dbeafe}.nd537-ticket-card.closed .nd537-ticket-state{background:#cbd5e1}.nd537-ticket-copy{min-width:0;flex:1}.nd537-ticket-copy b,.nd537-ticket-copy small,.nd537-ticket-copy em{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nd537-ticket-copy b{font-size:13px;color:#0f172a}.nd537-ticket-copy small{font-size:10.5px;color:#64748b;margin-top:4px}.nd537-ticket-copy em{font-style:normal;font-size:10px;color:#94a3b8;margin-top:3px}.nd537-ticket-arrow{font-size:24px;color:#94a3b8}
.nd537-thread>header,.nd537-new-form>header{display:flex;gap:10px;align-items:center;margin-bottom:14px}.nd537-thread>header button,.nd537-new-form>header button{width:36px;height:36px;border:1px solid #dbe5f2;border-radius:12px;background:#fff;font-size:24px}.nd537-thread>header b,.nd537-new-form>header b{display:block;color:#0f172a}.nd537-thread>header small,.nd537-new-form>header small{display:block;color:#64748b;font-size:10.5px;margin-top:3px}.nd537-messages{display:grid;gap:10px;max-height:440px;overflow:auto;padding:3px}.nd537-message{max-width:88%;border-radius:16px;padding:11px 12px}.nd537-message.client{margin-right:auto;background:#eff6ff;border:1px solid #bfdbfe}.nd537-message.staff{margin-left:auto;background:#f8fafc;border:1px solid #e2e8f0}.nd537-message b{font-size:10.5px;color:#475569}.nd537-message p{margin:6px 0;font-size:12px;line-height:1.9;color:#0f172a}.nd537-message time{font-size:9.5px;color:#94a3b8}.nd537-reply,.nd537-new-form{display:grid;gap:10px}.nd537-reply{margin-top:14px}.nd537-reply textarea,.nd537-new-form textarea,.nd537-new-form input{width:100%;box-sizing:border-box;border:1px solid #dbe5f2;border-radius:13px;padding:11px;background:#fff;font:inherit}.nd537-new-form label{display:grid;gap:6px;font-size:11px;font-weight:800;color:#475569}.nd537-reply button,.nd537-new-form>button{border:0;border-radius:13px;background:#1f78f2;color:#fff;padding:12px;font-weight:900}.nd537-closed-note{text-align:center;padding:12px;color:#64748b;background:#f8fafc;border-radius:13px;margin-top:12px}
.nd519-upgrade-picker>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.nd519-upgrade-picker>header button{width:32px;height:32px;border:1px solid #dbe5f2;border-radius:10px;background:#fff;color:#64748b;font-size:20px;cursor:pointer}


/* RC50.38 — compact support activity inside customer profile header */
.nd538-ticket-status{position:relative;min-width:128px;height:46px;margin-inline-start:auto;display:flex;align-items:center;gap:8px;padding:6px 9px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;color:#334155;text-align:right;cursor:pointer;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.nd538-ticket-status:hover{border-color:#bfdbfe;background:#f8fbff;box-shadow:0 7px 20px rgba(37,99,235,.07)}
.nd538-ticket-status-icon{width:31px;height:31px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:#fff;font-size:15px;box-shadow:0 2px 8px rgba(15,23,42,.05)}
.nd538-ticket-status-copy{min-width:0;display:block;line-height:1.35}.nd538-ticket-status-copy b,.nd538-ticket-status-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nd538-ticket-status-copy b{font-size:10.5px;color:#334155}.nd538-ticket-status-copy small{margin-top:2px;font-size:8.5px;color:#94a3b8}
.nd538-ticket-status-arrow{margin-inline-start:auto;color:#94a3b8;font-size:19px;line-height:1}.nd538-ticket-status-badge{position:absolute;top:-6px;right:-5px;min-width:18px;height:18px;padding:0 4px;border:2px solid #fff;border-radius:10px;background:#ef4444;color:#fff;font:800 9px/14px Tahoma;text-align:center}
.nd538-ticket-status.has-new{border-color:#bfdbfe;background:#eff6ff}.nd538-ticket-status.has-new .nd538-ticket-status-icon{background:#dbeafe}.nd538-ticket-status.has-new .nd538-ticket-status-copy small{color:#2563eb;font-weight:800}
.nd537-tickets-head h3{margin-top:0}
@media(max-width:420px){.nd-customer-panel-head{gap:9px!important}.nd538-ticket-status{min-width:112px;height:43px;padding:5px 7px;gap:6px}.nd538-ticket-status-icon{width:29px;height:29px}.nd538-ticket-status-copy b{font-size:9.5px}.nd538-ticket-status-copy small{font-size:7.8px}}


/* RC50.48 — red badge only for new replies; total ticket count stays below support */
#ndCustomerTicketStatusText{direction:rtl;unicode-bidi:isolate;text-align:right}
#ndCustomerTicketStatusText[hidden]{display:none!important}
#ndCustomerTicketStatusText bdi{display:inline!important;direction:ltr;unicode-bidi:isolate}
#ndCustomerTicketStatusBadge,#ndTicketBadge{direction:ltr;unicode-bidi:isolate}

/* RC53.09 — one-column support list and inline animated new-ticket drawer. */
#ndCustomerPanel .nd53-operation-content .nd537-tickets-content{padding:22px 26px 34px!important}
#ndCustomerPanel .nd5309-support-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:2px 0 18px;border-bottom:1px solid #e6edf6}
#ndCustomerPanel .nd5309-support-title{display:flex;align-items:center;gap:12px;min-width:0}
#ndCustomerPanel .nd5309-support-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#eff6ff;color:#2563eb;flex:0 0 auto}
#ndCustomerPanel .nd5309-support-mark svg{width:22px;height:22px}
#ndCustomerPanel .nd5309-support-title small{display:block;color:#94a3b8;font-size:12px;font-weight:700}
#ndCustomerPanel .nd5309-support-title h3{margin:3px 0 0;color:#0f172a;font-size:24px;line-height:1.35}
#ndCustomerPanel .nd5309-new-ticket{display:inline-flex;align-items:center;gap:7px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:13px;padding:10px 15px;font-weight:900;font-size:13px;cursor:pointer;transition:.2s ease}
#ndCustomerPanel .nd5309-new-ticket:hover{background:#dbeafe;transform:translateY(-1px)}
#ndCustomerPanel .nd5309-create-drawer{display:grid;grid-template-rows:0fr;opacity:0;transform:translateY(-8px);overflow:hidden;border-bottom:1px solid transparent;transition:grid-template-rows .26s ease,opacity .2s ease,transform .26s ease,padding .26s ease,border-color .26s ease;padding:0}
#ndCustomerPanel .nd5309-create-drawer>*{min-height:0}
#ndCustomerPanel .nd5309-create-drawer.is-open{grid-template-rows:1fr;opacity:1;transform:none;padding:18px 0;border-bottom-color:#e6edf6}
#ndCustomerPanel .nd5309-new-form{display:grid;gap:15px;padding:20px;border:1px solid #dbe8f7;border-radius:18px;background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);box-shadow:0 12px 32px rgba(37,99,235,.06)}
#ndCustomerPanel .nd5309-form-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
#ndCustomerPanel .nd5309-form-head b{display:block;color:#0f172a;font-size:17px}
#ndCustomerPanel .nd5309-form-head small{display:block;margin-top:4px;color:#64748b;font-size:12px}
#ndCustomerPanel .nd5309-form-head button{width:34px;height:34px;border:1px solid #d8e4f2;border-radius:11px;background:#fff;color:#64748b;font-size:20px;cursor:pointer}
#ndCustomerPanel .nd5309-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#ndCustomerPanel .nd5309-new-form label{display:grid;gap:7px;color:#475569;font-size:12px;font-weight:800}
#ndCustomerPanel .nd5309-new-form input,#ndCustomerPanel .nd5309-new-form select,#ndCustomerPanel .nd5309-new-form textarea{width:100%;box-sizing:border-box;border:1px solid #d8e4f2;border-radius:13px;background:#fff;padding:12px 13px;font:inherit;color:#0f172a;outline:none;transition:border-color .18s ease,box-shadow .18s ease}
#ndCustomerPanel .nd5309-new-form input:focus,#ndCustomerPanel .nd5309-new-form select:focus,#ndCustomerPanel .nd5309-new-form textarea:focus{border-color:#93c5fd;box-shadow:0 0 0 3px #dbeafe}
#ndCustomerPanel .nd5309-new-form textarea{resize:vertical;min-height:125px;line-height:1.9}
#ndCustomerPanel .nd5309-form-actions{display:flex;justify-content:flex-start;gap:10px}
#ndCustomerPanel .nd5309-form-actions button{min-width:120px;border:0;border-radius:12px;padding:11px 18px;background:#1f78f2;color:#fff;font-weight:900;cursor:pointer}
#ndCustomerPanel .nd5309-form-actions button.secondary{background:#fff;color:#475569;border:1px solid #d8e4f2}
#ndCustomerPanel .nd5309-ticket-list{display:grid;grid-template-columns:1fr!important;gap:0;margin-top:12px;border:1px solid #e2e8f0;border-radius:18px;overflow:hidden;background:#fff}
#ndCustomerPanel .nd5309-ticket-row{width:100%;display:grid;grid-template-columns:12px minmax(0,1fr) minmax(145px,auto) 28px;align-items:center;gap:14px;text-align:right;border:0;border-bottom:1px solid #edf2f7;background:#fff;padding:17px 18px;cursor:pointer;transition:background .18s ease}
#ndCustomerPanel .nd5309-ticket-row:last-child{border-bottom:0}
#ndCustomerPanel .nd5309-ticket-row:hover{background:#f8fbff}
#ndCustomerPanel .nd5309-ticket-status{width:9px;height:9px;border-radius:50%;background:#94a3b8}
#ndCustomerPanel .nd5309-ticket-row.new .nd5309-ticket-status{background:#2563eb;box-shadow:0 0 0 4px #dbeafe}
#ndCustomerPanel .nd5309-ticket-row.closed .nd5309-ticket-status{background:#cbd5e1}
#ndCustomerPanel .nd5309-ticket-main{min-width:0}
#ndCustomerPanel .nd5309-ticket-main b{display:block;color:#0f172a;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ndCustomerPanel .nd5309-ticket-main small{display:block;margin-top:5px;color:#64748b;font-size:11px}
#ndCustomerPanel .nd5309-ticket-main i{font-style:normal;color:#cbd5e1;padding:0 3px}
#ndCustomerPanel .nd5309-ticket-meta{text-align:left;white-space:nowrap}
#ndCustomerPanel .nd5309-ticket-meta em,#ndCustomerPanel .nd5309-ticket-meta time{display:block;font-style:normal}
#ndCustomerPanel .nd5309-ticket-meta em{color:#475569;font-size:11px;font-weight:800}
#ndCustomerPanel .nd5309-ticket-meta time{margin-top:5px;color:#94a3b8;font-size:10px}
#ndCustomerPanel .nd5309-ticket-arrow{color:#94a3b8;font-size:24px;line-height:1}
#ndCustomerPanel .nd5309-empty{display:grid;justify-items:center;gap:8px;padding:60px 20px;color:#64748b;text-align:center}
#ndCustomerPanel .nd5309-empty>span{width:52px;height:52px;display:grid;place-items:center;border-radius:17px;background:#eff6ff;color:#2563eb;font-size:26px}
#ndCustomerPanel .nd5309-empty b{color:#0f172a;font-size:15px}
#ndCustomerPanel .nd5309-empty small{font-size:12px}
#ndCustomerPanel .nd5309-empty button{margin-top:8px;border:0;border-radius:12px;background:#1f78f2;color:#fff;padding:11px 16px;font-weight:900}
@media(max-width:700px){#ndCustomerPanel .nd53-operation-content .nd537-tickets-content{padding:16px!important}#ndCustomerPanel .nd5309-support-head{align-items:flex-start}#ndCustomerPanel .nd5309-support-title h3{font-size:20px}#ndCustomerPanel .nd5309-new-ticket{padding:9px 11px;font-size:12px}#ndCustomerPanel .nd5309-form-grid{grid-template-columns:1fr}#ndCustomerPanel .nd5309-ticket-row{grid-template-columns:10px minmax(0,1fr) 24px;gap:10px;padding:15px 13px}#ndCustomerPanel .nd5309-ticket-meta{grid-column:2;text-align:right;display:flex;gap:8px;align-items:center;margin-top:2px}#ndCustomerPanel .nd5309-ticket-meta time{margin:0}#ndCustomerPanel .nd5309-ticket-arrow{grid-column:3;grid-row:1/3}}

/* RC55.02 */
.nd-ticket-badge{box-sizing:border-box!important;display:grid!important;place-items:center!important;min-width:25px!important;width:25px!important;height:25px!important;padding:0!important;border-radius:50%!important;font:900 14px/1 Tahoma,Arial,sans-serif!important;top:-9px!important;right:-9px!important}.nd-ticket-badge[hidden]{display:none!important}
