/* Incoming calls: the notice over the task board's title row, and the history dialog (static/incoming-calls.mjs). */
/* The notice's place takes no room at all: the board below it stays exactly where it is when a call comes in or goes.
   The notice hangs from that place and lies over the title row (and, when it needs more lines, over what follows). */
.ic-anchor{position:sticky;top:0;height:0;z-index:15}
.ic-anchor:empty{display:none}
.ic-banner{position:absolute;top:0;left:0;right:0;max-height:70vh;overflow:auto;box-shadow:0 3px 9px #0004}
.ic-call{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;min-height:25px;padding:2px 8px;border:1px solid #b88a00;border-top-width:0;background:#fff3c4;color:#1b1b1b;font-size:12px;line-height:1.35}
.ic-call:first-child{border-top-width:1px}
.ic-call.ic-ringing{background:#ffe08a;border-color:#a87400}
.ic-call.ic-answered{background:#e3f3df;border-color:#4d8a4d}
.ic-call.ic-ended{background:#eceeec;border-color:#8a928a}
.ic-call.ic-failed{background:#fde8e4;border-color:#b3402a;color:#7a1f10;font-weight:700}
.ic-call.ic-more{background:#f6f6f6;border-color:#9a9a9a;color:#444}
.ic-when{white-space:nowrap}
.ic-when b{margin-right:3px}
.ic-call .ic-state{display:inline-block;padding:0 6px;border-radius:9px;background:#1b1b1b;color:#fff;font-size:11px;font-weight:700;white-space:nowrap}
.ic-call.ic-answered .ic-state{background:#27633a}
.ic-call.ic-ended .ic-state{background:#6a726a}
.ic-store,.ic-line{white-space:nowrap;color:#3d3d3d}
.ic-store{font-weight:700}
.ic-call .ic-who{min-width:0;max-width:34em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ic-who.ic-member strong{font-weight:700;font-size:13px}
.ic-who.ic-unknown strong,.ic-who.ic-withheld strong{font-weight:700;color:#5a3d00}
.ic-flag{display:inline-block;margin-left:5px;padding:0 6px;border-radius:9px;font-size:11px;font-weight:700;white-space:nowrap;cursor:help}
.ic-flag.ic-danger{background:#c62828;color:#fff}
.ic-flag.ic-warn{background:#f2c94c;color:#1b1b1b}
.ic-flag.ic-note{background:#dcdcdc;color:#1b1b1b}
.ic-actions{display:flex;flex-wrap:wrap;gap:4px}
/* The buttons are as low as the bell beside the title, so that one call is one line of the title row's height. */
.mind-reception .ic-call .btn,.ic-call .btn{height:19px;min-height:19px;padding:0 8px;border-radius:2px;font-size:11.5px;line-height:17px;font-weight:400;white-space:nowrap}
.ic-call .btn.ic-dismiss{background:transparent}
@media(max-width:700px){
 /* A phone: who is calling gets a line of its own and may break; the buttons are large enough for a finger. */
 .ic-call{gap:4px 8px;padding:5px 6px}
 .ic-call .ic-who{flex:1 0 100%;max-width:none;white-space:normal;overflow:visible}
 .ic-actions{flex:1 0 100%}
 .mind-reception .ic-call .btn,.ic-call .btn{height:30px;min-height:30px;padding:0 10px;font-size:13px;line-height:28px}
}

/* The history dialog. */
.ic-panel{font-size:12px;color:#253243}
.ic-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px 10px;align-items:end;margin-bottom:8px}
.ic-panel .field{min-width:0;margin:0}
.ic-panel .field input,.ic-panel .field select{width:100%;max-width:100%;font-size:12px}
.ic-count-note{margin:0 0 6px}
.ic-days-wrap{max-height:22vh;overflow:auto;margin-bottom:8px;border:1px solid #dae0e7;border-radius:5px}
.ic-days,.ic-table{width:100%;border-collapse:collapse;font-size:12px}
.ic-days th,.ic-days td{padding:4px 8px;border-bottom:1px solid #e2e7ed;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.ic-days th:first-child,.ic-days td:first-child{text-align:left}
.ic-days th,.ic-table th{position:sticky;top:0;z-index:1;background:#f2f5f8}
.ic-days-total td{font-weight:700;background:#f8faf7}
.ic-notice{margin:0 0 6px;padding:5px 8px;border:1px solid #d4e4d5;border-radius:5px;background:#f0f6ec;color:#27543a}
.ic-empty{margin:8px 0;color:#657367}
.ic-table-wrap{max-height:44vh;overflow:auto;border:1px solid #dae0e7;border-radius:5px}
.ic-table th,.ic-table td{padding:5px 8px;border-bottom:1px solid #e2e7ed;text-align:left;vertical-align:top}
.ic-table td>strong,.ic-table td>small{display:block;white-space:nowrap}
.ic-table small{margin-top:2px;color:#596579}
.ic-table .ic-state{display:inline-block;padding:0 6px;border-radius:9px;background:#e6ebf1;color:#2c3c52;font-weight:700;white-space:nowrap}
.ic-row-ended .ic-state{background:#e6ebf1;color:#2c3c52}
.ic-row-answered .ic-state{background:#dff1dc;color:#22572f}
.ic-row-missed .ic-state{background:#fbe3dc;color:#8f2c12}
.ic-row-ringing .ic-state{background:#ffe9a6;color:#5a3d00}
.ic-table td.ic-who{overflow-wrap:anywhere}
.ic-table select{min-width:6.5em}
.ic-table input[type=text]{width:100%;min-width:11em}
.ic-edited td{background:#fffbe9}
.ic-pagination{margin:7px 0 4px;color:#596579}
#dialog:has(.ic-panel) .dialog-actions{flex-wrap:wrap;gap:6px;justify-content:flex-end}
@media(max-width:700px){.ic-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
