/* company-cards.css - the Company cards block on a person's page (Duties,
   under Keys and alarm) and its three sheets: Give a company card, All
   company cards, Edit (app/company-cards.js, migration 338); and the size of
   Expenses' Paid with select (at the end). Only what
   person.css does not already draw; tokens only, no new colour. One accent
   per surface: the sheet's own OK button; Take back, Give, All, Edit,
   Retire and Bring back are ghost buttons. */
.cc-list{display:block}
.cc-row .al{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:6px;overflow-wrap:anywhere}
.cc-row .cc-name{font-weight:600}
.cc-row .cc-end,.cc-ihead .cc-end{font-family:var(--mono);font-size:12.5px;color:var(--ink2);white-space:nowrap}
.cc-row .al small{flex:1 0 100%}
.cc-row .cc-take{flex:0 0 auto;min-height:34px}
.cc-hist{margin:0 0 8px;padding:0 0 0 18px;font-size:13px;color:var(--ink2)}
.cc-hist li{padding:3px 0;overflow-wrap:anywhere}
/* the Give sheet: the card list, then the new card's two boxes */
.cc-opts{display:grid;gap:0}
.pp-sheet label.cc-opt span{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
.pp-sheet label.cc-opt small{font-size:12px;color:var(--ink3)}
.cc-new[hidden]{display:none}
.cc-new label{display:block}
.cc-new input,.pp-sheet #cc-ename,.pp-sheet #cc-elast4{width:100%}
.pp-sheet #cc-last4,.pp-sheet #cc-elast4{max-width:10ch;font-family:var(--mono);letter-spacing:.2em}
.cc-hint{margin:-6px 0 12px}
/* All company cards: one card a row, at most 640px wide on a desk */
.cc-all{list-style:none;margin:0 0 6px;padding:0;max-width:640px}
.cc-item{padding:10px 0;border-top:1px solid var(--line2)}
.cc-item:first-child{border-top:0}
.cc-ihead{font-size:14.5px;overflow-wrap:anywhere}
.cc-item .cc-on{margin:4px 0 0}
.cc-iacts{margin-top:8px}
.cc-iacts .btn{flex:0 1 auto;min-width:96px}
.cc-held{margin-top:8px}
/* Expenses' Paid with (staff.html: #ie-paid, #oe-paid, and the tick-rows
   bar's #iebulkpaid and #iebulkpaidgo). The select fills its cell and never
   widens the form past a phone's edge, however long a card's name and its
   holder (merge review: a 40-character name pushed a 360px page 108px
   sideways); the forms' own field look; 34px on a desk, 44px on a phone. */
#ie-paidwrap,#oe-paidwrap{min-width:0}
#ie-paid,#oe-paid,#iebulkpaid{width:100%;max-width:100%;min-width:0;min-height:34px;margin:0;padding:6px 8px;
  border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font:inherit;font-size:12.5px}
#iebulkpaid{width:auto}
#iebulkpaidgo{min-height:34px}
@media (max-width:719px),(pointer:coarse){
  .cc-row .cc-take,.cc-iacts .btn,.cc-acts .btn,.cc-before summary,.cc-held summary{min-height:44px}
  .cc-row{flex-wrap:wrap}
  .cc-row .al{flex:1 1 180px}
  #ie-paid,#oe-paid,#iebulkpaid,#iebulkpaidgo{min-height:44px}
}
