/* Room > Bookings: the Sales/Purchases table layout (storefront-data-table.js) on the Calendar page. */
#tovaContent .wm-pur-page{--wm-ink:#1d2b3d;--wm-muted:#677587;--wm-teal:#0f766d;--wm-teal-dark:#0b5850;--font-ui:'Cabinet Grotesk',sans-serif;font-family:var(--font-ui);color:var(--wm-ink);}
#tovaContent .wm-page-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 20px;}
#tovaContent .wm-page-title h1{margin:0;font-size:27px;line-height:1.15;}
#tovaContent .wm-page-title p{margin:6px 0 0;color:var(--wm-muted);font-size:13px;}
#tovaContent .wm-pur-page .wm-input{border:1px solid #e4e7ec;padding:0 14px;font:14px var(--font-ui);color:var(--wm-ink);outline:0;}
#tovaContent .wm-pur-page .wm-input:focus{border-color:var(--wm-teal);}
#tovaContent .wm-status{display:inline-block;padding:4px 10px;border-radius:999px;font:600 12px var(--font-ui);background:#e3f5ee;color:#0b7a5a;}
#tovaContent .wm-status.is-completed{background:#e2ecf8;color:#2a5a99;}
#tovaContent .wm-status.is-cancelled,#tovaContent .wm-status.is-no_show{background:#f0f1f2;color:#727c86;}
#tovaContent .wm-pur-join{color:var(--wm-teal-dark);font-weight:600;text-decoration:none;}
#tovaContent .wm-pur-join:hover{text-decoration:underline;}
#tovaContent .wm-pur-card{background:#fff;border:1px solid #e4e7ec;border-radius:14px;margin:0 0 20px}
#tovaContent .wm-pur-search{display:flex;gap:16px;align-items:center;padding:18px 22px}
#tovaContent .wm-pur-search .wm-input{flex:1;min-width:0;height:44px;border-radius:9px;background:#fff}
#tovaContent .wm-pur-tools{display:flex;flex-wrap:wrap;gap:14px;align-items:center;padding:16px 20px;border-radius:22px}
#tovaContent .wm-pur-btn{display:inline-flex;align-items:center;gap:9px;height:44px;padding:0 18px;border:1px solid #e4e7ec;border-radius:9px;background:#fff;color:var(--wm-ink);font:600 14px var(--font-ui);cursor:pointer;white-space:nowrap}
#tovaContent .wm-pur-btn:hover{background:#f8fafc}
#tovaContent .wm-pur-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
#tovaContent .wm-pur-export{font-weight:500;color:#475467;border-radius:12px;background:#fbfcfd}
#tovaContent .wm-pur-menu-wrap{position:relative;flex:none}
#tovaContent .wm-pur-menu{position:absolute;right:0;top:calc(100% + 6px);min-width:220px;background:#fff;border:1px solid #e4e7ec;border-radius:12px;box-shadow:0 12px 30px rgba(16,24,40,.12);padding:6px;z-index:20}
#tovaContent .wm-pur-menu[hidden]{display:none}
#tovaContent .wm-pur-menu button{display:block;width:100%;text-align:left;border:0;background:none;padding:9px 12px;border-radius:8px;font:500 14px var(--font-ui);color:var(--wm-ink);cursor:pointer}
#tovaContent .wm-pur-menu button:hover{background:#f4f6f8}
#tovaContent .wm-pur-menu button.is-active{background:#eef6f5;color:var(--wm-teal-dark);font-weight:600}
#tovaContent .wm-pur-date{display:flex;align-items:stretch;height:48px;border:1px solid #e4e7ec;border-radius:12px;background:#fbfcfd;overflow:hidden}
#tovaContent .wm-pur-date span{display:flex;align-items:center;padding:0 18px;color:#475467;font-size:13px;border-right:1px solid #e4e7ec;white-space:nowrap}
#tovaContent .wm-pur-date input{border:0;background:#fff;padding:0 14px;font:14px var(--font-ui);color:var(--wm-ink);min-width:150px}
#tovaContent .wm-pur-table-card{overflow:hidden}
#tovaContent .wm-pur-scroll{overflow-x:auto}
#tovaContent .wm-pur-table{width:100%;border-collapse:collapse;min-width:680px}
#tovaContent .wm-pur-table th{background:#f8fafc;border-bottom:1px solid #e4e7ec;text-align:left;font:600 14px var(--font-ui);color:#344054;padding:0 20px;height:68px;white-space:nowrap}
#tovaContent .wm-pur-table th button{all:unset;display:inline-flex;align-items:center;gap:8px;cursor:pointer;font:inherit;color:inherit}
#tovaContent .wm-pur-table td{padding:16px 20px;border-bottom:1px solid #eef0f3;vertical-align:middle}
#tovaContent .wm-pur-table tbody tr:last-child td{border-bottom:0}
#tovaContent .wm-pur-table td small{display:block;color:var(--wm-muted);font-size:11px;margin-top:2px}
#tovaContent .wm-pur-table .wm-pur-num{width:56px;color:#475467}
#tovaContent .wm-pur-table td.wm-pur-empty{text-align:center;color:var(--wm-muted);padding:34px 20px;height:96px}
#tovaContent .wm-pur-arrows{display:inline-flex;flex-direction:column;gap:3px}
#tovaContent .wm-pur-arrows i{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:6px solid #d0d5dd}
#tovaContent .wm-pur-arrows i.down{border-bottom:0;border-top:6px solid #d0d5dd}
#tovaContent .wm-pur-arrows i.is-on{border-bottom-color:var(--wm-teal);border-top-color:var(--wm-teal)}
#tovaContent .wm-pur-arrows i.down.is-on{border-bottom-color:transparent}
#tovaContent .wm-pur-table th.wm-pur-r,#tovaContent .wm-pur-table td.wm-pur-r{text-align:right}
#tovaContent .wm-pur-table th.wm-pur-r button{justify-content:flex-end}
#tovaContent .wm-pur-actions{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center}
#tovaContent .wm-pur-stats{margin:0 0 20px}
#tovaContent .wm-pur-table td b{font-weight:600}
@media(max-width:760px){
  #tovaContent .wm-pur-search{padding:12px;gap:10px;border-radius:12px;}
  #tovaContent .wm-pur-search .wm-input{height:42px;}
  #tovaContent .wm-pur-btn{padding:0 12px;height:42px;}
  #tovaContent .wm-pur-tools{padding:12px;gap:10px;border-radius:16px;}
  #tovaContent .wm-pur-table th{height:52px;padding:0 14px;}
  #tovaContent .wm-pur-table td{padding:12px 14px;}
  #tovaContent .wm-page-title h1{font-size:23px;}
}

/* Tova: plus-icon create button (header). Full label on desktop, round plus icon on phones. */
.tvu-create{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 18px;border:0;border-radius:10px;background:#0F766D;color:#fff;font:600 14px 'Cabinet Grotesk',sans-serif;cursor:pointer;white-space:nowrap;flex:none}
.tvu-create:hover{background:#0b5850}
.tvu-plus{display:inline-flex}.tvu-plus svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
#tovaContent .pagehead{display:flex;align-items:center;justify-content:space-between;gap:12px}
#tovaContent .wm-page-title{align-items:center}
#tovaContent .wm-pur-stats,#tovaContent .moneyhead{margin:0 0 20px}
#tovaContent .tvu-import{height:42px}
@media(max-width:650px){
  .tvu-create{width:40px;height:40px;padding:0;border-radius:50%}
  .tvu-lbl{display:none}
  .tvu-plus svg{width:20px;height:20px}
  #tovaContent .pagehead h1,#tovaContent .wm-page-title h1{font-size:21px}
  #tovaContent .pagehead .sub,#tovaContent .wm-page-title p{font-size:12px}
  #tovaContent .tabs button{font-size:12px;padding:7px 12px}
  #tovaContent .toolbar{gap:8px}#tovaContent .tvu-import{flex:1 1 100%;font-size:12px;height:40px}
  #tovaContent .wm-pur-table{min-width:620px;font-size:12px}
}
/* Pearl opened from Tova uses the minimised Pearl panel (bottom sheet on phones) */
#ppPearlMini.tvu-pearl-open{display:block !important;position:fixed;right:20px;bottom:20px;z-index:1450;width:400px;max-width:calc(100vw - 40px);height:min(620px,calc(100dvh - 40px));background:#fff;border:1px solid #D9DEE6;border-radius:16px;box-shadow:0 18px 50px rgba(18,32,38,.18);overflow:hidden}
#ppPearlMini.tvu-pearl-open iframe{display:block;width:100%;height:100%;border:0;background:#fff}
@media(max-width:840px){#ppPearlMini.tvu-pearl-open{left:0;right:0;bottom:0;width:100%;max-width:100%;height:84dvh;border-radius:16px 16px 0 0}}
body.tvu-pearl-on #pearlFab{display:none !important}

/* Tova Clients table: same search / filter / export bar as Proposals; client cell, and the import button in the title row */
#tovaContent #wmt-tova-clients .tvu-import{height:40px;flex:none}
.tvu-cl{display:flex;align-items:center;gap:10px;min-width:0}
.tvu-cl>span{display:block;min-width:0}
.tvu-cl .clientlogo{flex:none}
.tvu-cl .ppbadge{margin-left:8px}
#wmt-tova-clients td .acts{justify-content:flex-end}
@media(max-width:650px){
  #wmt-tova-clients .wm-page-title{flex-wrap:wrap}
  #tovaContent #wmt-tova-clients .tvu-import{height:36px;font-size:12px;flex:1 1 100%}
}

/* prices and counts start on the same left line */
#wmt-tova-clients td,#wmt-tova-clients th{text-align:left}
#wmt-tova-clients th button{justify-content:flex-start}
#wmt-tova-clients td:last-child,#wmt-tova-clients th:last-child{text-align:right}
