.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0}.toolbar input,.toolbar select,.edit-grid input,.edit-grid select,.edit-grid textarea,.offer input,.offer select{font:inherit;padding:9px;border:1px solid #cfd7e4;border-radius:7px;min-width:0;width:100%}.toolbar input{max-width:320px}.toolbar select{max-width:230px}.edit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0}.edit-grid label{font-size:13px;display:grid;gap:6px}.wide{grid-column:1/-1}.position{display:grid;grid-template-columns:2fr 1fr 90px 90px 2fr auto;gap:8px;margin:10px 0}.position input{width:100%;min-width:0;padding:9px;border:1px solid #cfd7e4;border-radius:7px}.offer{background:#f6f8fc;padding:14px;margin:12px 0;border-radius:10px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.offer label{display:grid;gap:6px;font-size:12px}.panel+.panel{margin-top:18px}.tabs{display:flex;gap:8px;margin:18px 0}.notice{padding:12px 0;color:#667085}.history-item{padding:14px 0;border-bottom:1px solid #e3e8f0}.history-item pre{white-space:pre-wrap;font-size:12px;max-height:180px;overflow:auto}.form-error{color:#b42318;margin:12px 0}.success{color:#157347;margin:10px 0}fieldset{border:0;padding:0;margin:0;min-width:0}button:disabled{opacity:.5;cursor:default}

/* Task shortcuts stay together at the right edge of the heading. */
.task-header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-left:auto}.task-header-actions .btn{white-space:nowrap}.task-header-actions #my-tasks-button{order:0}.task-header-actions .btn[onclick="editTask()"]{order:3}
@media(max-width:760px){.task-header-actions{gap:8px}}
button[data-button-icon]::before{content:attr(data-button-icon);display:inline-block;font-size:1em;line-height:1.2;flex-shrink:0;margin-right:.4em}button.btn[data-button-icon]::before{margin-right:0}
.sidebar-count{margin-left:auto!important;background:#e7354f;color:white!important;border-radius:20px;min-width:21px;height:21px;padding:2px 6px;display:inline-flex;align-items:center;justify-content:center;font-size:11px!important;font-weight:700}.task-bulk-toolbar{background:#f5f8fc;border-radius:12px;padding:12px}.task-bulk-toolbar input[type=checkbox],#task-results input[type=checkbox]{width:17px;height:17px;accent-color:#163f6b}#task-bulk-dialog{border:1px solid #dbe4ef;border-radius:16px;padding:24px;width:min(460px,90vw)}#task-bulk-dialog::backdrop{background:#10284466}#task-bulk-dialog label{display:grid;gap:8px;margin-bottom:16px}
/* Shared attachment controls: native filenames remain visible and keyboard access is preserved. */
input[type=file]:not(.chat-upload input):not(.upload-label input){display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px dashed #afc2d9;border-radius:12px;background:#f5f8fc;color:#506983;font:inherit;font-size:12px;cursor:pointer}input[type=file]::file-selector-button{border:0;border-radius:8px;padding:10px 14px;margin-right:12px;background:#153958;color:#fff;font:inherit;font-weight:600;cursor:pointer}input[type=file]:hover{border-color:#497cb2}input[type=file]:focus-visible{outline:2px solid #497cb2;outline-offset:3px}input[type=file]:disabled{opacity:.55;cursor:wait}.toolbar>input[type=file]{flex:1 1 280px}.upload-label:focus-within{outline:2px solid #497cb2;outline-offset:3px}.chat-upload:has(input:disabled){opacity:.55;cursor:wait}

.side .nav-item>.sidebar-count{flex:0 0 22px;width:22px;min-width:22px;height:22px;padding:0;margin-left:auto!important;border-radius:50%;background:#df4056;box-shadow:0 2px 5px #df405618;font-size:10px!important;line-height:22px;font-variant-numeric:tabular-nums;text-align:center}.side .nav-item{gap:10px}.side .nav-item>span:not(.sidebar-count){min-width:0}
.side nav .nav-item-upcoming{cursor:default!important;transform:none!important;opacity:.82;background:#f7f8fa;border:1px solid #edf0f4;border-radius:12px;color:#52647d}.side nav .nav-item-upcoming:hover{transform:none!important;background:#f7f8fa;color:#52647d}.nav-item-upcoming small{flex:0 0 auto!important;white-space:nowrap;border-radius:999px;padding:4px 7px;background:#fff2d5;color:#875d10;font-size:9px;font-weight:650}

.task-pagination{justify-content:flex-end;margin-top:18px;gap:12px}.task-pagination label{display:flex;align-items:center;gap:8px;margin-right:auto}.task-pagination select{width:80px;min-width:80px}.task-pagination>span{font-size:12px;color:#64798f}
.list-page-hidden{display:none!important}.unified-pagination{padding:12px 0}.table-scroll>.unified-pagination{min-width:480px}
.reply-position{padding:18px;border:1px solid #dfe7f0;border-radius:14px;background:#f8fafc;margin:14px 0}.reply-position>.btn{margin-top:12px}.reply-total{text-align:right;font-size:16px;padding:16px;background:#edf5ff;border-radius:12px}#reply-form fieldset{border:0;padding:0;min-width:0}#reply-form input[type=number]{min-width:0}

.reply-settings{background:#f5f8fc;border:1px solid #e1e8f1;border-radius:14px;padding:16px;margin-bottom:20px}.reply-settings h4{margin-top:0}.reply-settings .edit-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.reply-paste{margin:12px 0 18px;padding:12px 16px;border:1px solid #dfe7f0;border-radius:12px}.reply-paste summary{cursor:pointer;font-weight:600}.reply-paste textarea{width:100%;box-sizing:border-box;margin:8px 0;font:13px monospace}.reply-grid table{width:100%;min-width:900px;border-collapse:collapse}.reply-grid th{padding:10px 8px;text-align:left;font-size:12px;color:#65758b;background:#f1f5fa}.reply-grid td{padding:8px 5px;border-bottom:1px solid #e2e8f0;vertical-align:top}.reply-grid .reply-position{background:white}.reply-grid input,.reply-grid select{width:100%;box-sizing:border-box;min-width:70px;padding:9px 7px}.reply-grid td:first-child{min-width:210px;width:26%}.reply-grid td:nth-child(6){min-width:150px}.reply-transport-note{display:block;color:#738198;font-size:11px;margin-top:5px}.reply-grid .reply-remove{width:32px;height:32px;min-width:32px;border-radius:50%;padding:0;font-size:20px;color:#ae3842}.reply-grid .reply-remove:before{display:none!important}@media(max-width:800px){.reply-settings .edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.reply-empty{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px}.reply-empty h3,.reply-empty p{margin:0}.reply-empty .btn{margin-top:8px}
.reply-grid table{min-width:820px;table-layout:fixed}.reply-grid th:first-child{width:25%}.reply-grid th:nth-child(6){width:17%}.reply-grid th:last-child{width:38px}.reply-grid input,.reply-grid select{min-width:0;border:1px solid #d6dfeb;border-radius:8px;background:#fff;color:#1d304c;font:inherit;font-size:13px;outline:none}.reply-grid input:focus,.reply-grid select:focus{border-color:#779dcc;box-shadow:0 0 0 2px #e6effa}.reply-grid td:first-child,.reply-grid td:nth-child(6){min-width:0}

.reply-output-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:16px 0}.reply-output-heading h3{margin:0}.reply-output-heading .btn{white-space:nowrap}

.reply-copy-field{display:inline-flex;align-items:center;gap:7px}.reply-copy-value{display:inline-flex;align-items:center;justify-content:center;flex:0 0 25px;width:25px;height:25px;padding:0;border:1px solid #dce4ef;border-radius:50%;background:#fff;color:#7a8ba3;cursor:pointer;vertical-align:middle}.reply-copy-value:hover{color:#244a76;background:#edf4fc;border-color:#aebfd5}.reply-copy-value:focus-visible{outline:2px solid #779dcc;outline-offset:2px}.reply-copy-value::before{display:none!important}
