/* v110: one control language for the whole Workspace.
   Before this file every screen sized its own controls (search boxes were 46, 48 and 54 px tall, switches 49 and 58 px, corners 10, 12, 14
   and 16 px). The values below are the single set; the screens keep their layout. It is loaded after the page styles, so the few
   properties it sets use !important to win over their older, more specific rules.
     fields (search boxes, dropdowns) and buttons: 46 px tall, 12 px corner
     switches (segmented controls): 14 px outer corner, 4 px inside padding, items 44 px tall (a full tap target) with a 10 px corner, 14 px bold text
     day switch: 46 px tall, 14 px corner (the same shape as the switches)
     cards: 16 px corner */
:root{--ui-h:46px;--ui-r:12px;--ui-seg-r:14px;--ui-seg-item-r:10px;--ui-seg-item-h:44px;--ui-card-r:16px}

/* the older size tokens (defined twice, as 40 and 48 px) now all mean the one value */
*{--control-h:var(--ui-h);--btn-h:var(--ui-h);--btn-radius:var(--ui-r)}

/* switches */
:is(.stock-tabs,.ov-branches,.rcv-segmented,.us-ranges,.workspace-tabs,.cm .tabs){padding:4px!important;border-radius:var(--ui-seg-r)!important}
:is(.stock-tabs a,.stock-tabs button,.ov-branches button,.rcv-segmented button,.us-ranges button,.workspace-tabs button,.cm .tabs button){min-height:var(--ui-seg-item-h)!important;border-radius:var(--ui-seg-item-r)!important;font-size:14px!important;font-weight:650!important}

/* fields */
:is(.stock-search-panel,.workspace-controls,.stock-search-label) :is(input:not([type=checkbox]):not([type=radio]):not([type=date]):not([type=month]),select){font-weight:600;height:var(--ui-h)!important;min-height:var(--ui-h)!important;padding-top:0!important;padding-bottom:0!important;border-radius:var(--ui-r)!important}
.stock-warehouse-picker summary{font-size:16px!important;height:var(--ui-h)!important;border-radius:var(--ui-r)!important}
:is(.admin,.settings-page) :is(select,input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]):not([type=date]):not([type=month])){height:var(--ui-h)!important;min-height:var(--ui-h)!important;border-radius:var(--ui-r)!important}

/* buttons */
:is(button.primary,.link-button,.primary-action){min-height:var(--ui-h);padding-top:0;padding-bottom:0;border-radius:var(--ui-r);font-size:15px;font-weight:650}
:is(.text-button,.inline-link){min-height:40px;border-radius:var(--ui-r);font-size:14px;font-weight:650}

/* day switch (Marketing) takes the shape of the Overview one */
:is(.day-date-controls,.ov-day){height:var(--ui-h)!important;border-radius:var(--ui-seg-r)!important}
.day-date-controls .nav-btn{height:var(--ui-h)!important;border-radius:var(--ui-r)!important}

/* cards */
:is(.ov-card,.analysis-card,.ov-panel,.ov-attention){border-radius:var(--ui-card-r)}
.link-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.person-card .person-title+.link-button{margin-top:12px}
