/* styles for the shared rich-text editor + comment thread (rte.js) */
.rte-wrap{margin-top:2px;}
.rte-toolbar{display:none;flex-wrap:wrap;gap:4px;padding:6px;background:#f1f4f9;border:1px solid #e3e6ef;border-bottom:none;border-radius:9px 9px 0 0;}
.rte-toolbar.open{display:flex;}
.rte-b{min-width:30px;height:28px;border:1px solid #d8dee9;background:#fff;border-radius:6px;font-size:13px;font-weight:700;cursor:pointer;color:#3a455c;line-height:1;}
.rte-b:hover{background:#eef2f7;}
.rte-editor{min-height:64px;border:1px solid #e3e6ef;border-radius:9px;padding:9px 11px;font-size:13.5px;line-height:1.5;color:#1c2433;background:#fcfdff;overflow:auto;}
.rte-toolbar.open + .rte-editor{border-radius:0 0 9px 9px;}
.rte-editor:focus{outline:none;border-color:#1b7fb5;box-shadow:0 0 0 3px rgba(27,127,181,.12);}
.rte-editor:empty:before{content:attr(data-ph);color:#9aa3b2;}
.rte-editor img{max-width:100%;height:auto;border-radius:6px;margin:4px 0;display:block;}
.rte-bar{display:flex;align-items:center;gap:10px;margin-top:5px;}
.rte-toggle{background:none;border:none;color:#005e90;font-size:12px;font-weight:700;cursor:pointer;padding:0;}
.rte-toggle:hover{text-decoration:underline;}
.rte-hint{font-size:11px;color:#9aa3b2;}
/* comment thread */
.t-cmts{margin-top:11px;border-top:1px solid #eef1f6;padding-top:9px;}
.t-cmt-toggle{background:none;border:none;color:#56627a;font-size:12.5px;font-weight:700;cursor:pointer;padding:0;}
.t-cmt-toggle:hover{color:#005e90;}
.t-cmt-body{margin-top:9px;}
.t-cmt-list{margin-bottom:9px;}
.t-cmt-empty{font-size:12.5px;color:#9aa3b2;font-style:italic;}
.t-cmt-item{background:#f6f8fc;border:1px solid #e9edf6;border-radius:10px;padding:8px 11px;margin-bottom:7px;}
.t-cmt-name{font-size:12.5px;font-weight:800;color:#00466b;margin-right:8px;}
.t-cmt-time{font-size:10.5px;color:#9aa3b2;}
.t-cmt-text{font-size:13px;color:#28324a;line-height:1.45;white-space:pre-wrap;word-wrap:break-word;margin-top:2px;}
.t-cmt-text img{max-width:100%;height:auto;border-radius:6px;margin:4px 0;display:block;}
.t-cmt-actions{display:flex;gap:12px;margin-top:6px;}
.t-cmt-act{background:none;border:none;padding:0;color:#8a93a6;font-size:11.5px;font-weight:700;cursor:pointer;}
.t-cmt-act:hover{color:#005e90;}.t-cmt-act.del:hover{color:#c0392b;}
.t-cmt-name-in{flex:1;border:1px solid #e3e6ef;border-radius:9px;padding:8px 11px;font-size:13px;font-family:inherit;}
.t-row{display:flex;align-items:center;gap:8px;margin-top:9px;flex-wrap:wrap;}
.t-btn{font-size:13px;font-weight:700;padding:8px 14px;border-radius:9px;cursor:pointer;border:1px solid transparent;}
.t-btn.primary{background:#005e90;color:#fff;}.t-btn.primary:hover{background:#0a4d74;}
.t-btn.soft{background:#f1f4f9;color:#4a5468;}.t-btn.soft:hover{background:#e7ebf3;}
.t-status{font-size:12.5px;font-weight:700;}.t-status.ok{color:#2f7d2a;}.t-status.err{color:#c0392b;}
@media print{.t-cmts,.rte-bar{display:none !important;}}
/* Asana-style slide-in comment panel */
.rcx-overlay{position:fixed;inset:0;background:rgba(12,22,40,.28);z-index:3000;opacity:0;visibility:hidden;transition:opacity .25s;}
.rcx-overlay.open{opacity:1;visibility:visible;}
.rcx-panel{position:fixed;top:0;right:0;height:100%;width:400px;max-width:92vw;background:#fff;z-index:3001;display:flex;flex-direction:column;box-shadow:-10px 0 34px rgba(10,30,60,.22);transform:translateX(102%);transition:transform .3s cubic-bezier(.4,0,.2,1);}
.rcx-panel.open{transform:translateX(0);}
.rcx-head{flex:0 0 auto;background:#005e90;color:#fff;display:flex;align-items:center;gap:10px;padding:14px 16px;}
.rcx-title{font-weight:800;font-size:16px;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.rcx-close{background:rgba(255,255,255,.18);border:none;color:#fff;width:30px;height:30px;border-radius:8px;cursor:pointer;font-size:18px;line-height:1;display:flex;align-items:center;justify-content:center;}
.rcx-close:hover{background:rgba(255,255,255,.3);}
.rcx-list{flex:1 1 auto;overflow:auto;padding:14px 16px;background:#f6f8fc;}
.rcx-form{flex:0 0 auto;border-top:1px solid #e3e6ef;padding:12px 14px;background:#fff;}
@media print{.rcx-overlay,.rcx-panel{display:none !important;}}
