/* Sales report (sales-report.js): My Teams › Sales report and the Front Desk window's Sales tab.
   Fixed colours: the workspace page changes --line and its glass buttons. */
.sr{display:flex;flex-direction:column;gap:14px;color:#13302f}
.sr [hidden]{display:none!important}
.sr,.sr *,.sr *::before,.sr *::after{box-sizing:border-box}
.sr-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.sr-head h2,.account-page .sr-head h2{margin:0;font-size:22px;font-weight:800;line-height:1.25;color:#13302f}
.sr-lead{margin:4px 0 0;font-size:14px;line-height:1.45;color:#4a6264}
.sr-print-only{display:none}
.sr-only{flex:none;padding:4px 10px;border-radius:999px;background:#e3f2ef;color:#0b6e69;font-size:11.5px;font-weight:800;letter-spacing:.04em;white-space:nowrap}

.sr-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.sr-when{display:inline-flex;border:1px solid #dbe5ea;border-radius:12px;overflow:hidden;background:#fff}
.sr-when button{height:40px;padding:0 14px;border:0;border-right:1px solid #dbe5ea;background:#fff;color:#33494a;font:inherit;font-size:13.5px;font-weight:700;cursor:pointer}
.sr-when button:last-child{border-right:0}
.sr-when button[aria-pressed="true"]{background:#0f2b29;color:#fff}
.sr-range{font-size:13px;color:#4a6264}
.sr-actions{margin-left:auto;display:inline-flex;align-items:flex-start;gap:8px}
.sr-dates{flex-basis:100%;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13.5px;color:#4a6264}
.sr-dates input{height:40px;padding:0 10px;border:1px solid #dbe5ea;border-radius:12px;background:#fff;color:#13302f;font:inherit}
.sr-btn,.sr-primary{white-space:nowrap;min-height:40px;padding:0 14px;border-radius:12px;font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.sr-btn{border:1px solid #dbe5ea;background:#fff;color:#13302f}
.sr-btn:hover{background:#f4f8fa}
.sr-primary{border:0;background:#0b6e69;color:#fff;font-weight:800;list-style:none}
.sr-primary::-webkit-details-marker{display:none}
.sr-primary::after{content:"";width:7px;height:7px;margin:-3px 2px 0 2px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.sr-download[open] .sr-primary{background:#0f2b29}
.sr-download[open] .sr-primary::after{margin-top:4px;transform:rotate(-135deg)}
.sr-download{position:relative}
.sr-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:20;width:min(360px,calc(100vw - 32px));padding:8px;border:1px solid #dbe5ea;border-radius:16px;background:#fff;box-shadow:0 16px 36px rgba(15,43,41,.18);display:flex;flex-direction:column;gap:4px}
.sr-file{display:flex;gap:12px;align-items:flex-start;padding:12px;border:0;border-radius:12px;background:#fff;color:#13302f;font:inherit;text-align:left;cursor:pointer}
.sr-file:hover,.sr-file:focus-visible{background:#f4f8fa}
.sr-file::before{content:"";flex:none;width:36px;height:36px;border-radius:10px;background:#e3f2ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230b6e69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h8'/%3E%3C/svg%3E") center/18px no-repeat}
.sr-file span{display:flex;flex-direction:column;gap:2px}
.sr-file strong{font-size:14px}
.sr-file small{font-size:12.5px;line-height:1.4;color:#4a6264}
.sr-file:disabled{opacity:.6;cursor:wait}
.sr-menu-note{margin:4px 12px 6px;font-size:12px;line-height:1.45;color:#4a6264}
/* My Teams wraps the text of every button (#teamAccessView button in styles.css); these keep one line.
   The Download menu's files are left out: their descriptions must wrap inside the menu. */
#teamAccessView .sr button:not(.sr-file),#teamAccessView .sr summary{white-space:nowrap;line-height:1.2}
.sr-btn:focus-visible,.sr-primary:focus-visible,.sr-when button:focus-visible,.sr-chip:focus-visible,.sr-file:focus-visible{outline:3px solid #6fb3ab;outline-offset:2px}

.sr-status{margin:0;font-size:14px;color:#4a6264}
.sr-status:empty{display:none}
.sr-status.is-error{padding:10px 14px;border-radius:12px;background:#fde8e4;color:#8f2d07;font-weight:600}
.sr-body{display:flex;flex-direction:column;gap:14px}
.sr-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.sr-stat{display:flex;flex-direction:column;gap:2px;padding:12px 16px;border:1px solid #dbe5ea;border-radius:16px;background:#fff}
.sr-stat span{font-size:12.5px;font-weight:600;color:#4a6264}
.sr-stat strong{font-size:24px;font-weight:800;color:#13302f;overflow-wrap:anywhere}
.sr-stat small{font-size:12px;color:#4a6264}
.sr-stat.is-good strong{color:#0b6e69}
.sr-stat.is-due strong{color:#8a5a00}
.sr-note{margin:0;font-size:13px;line-height:1.45;color:#4a6264}
.sr-empty{margin:0;font-size:14px;color:#4a6264}
.sr-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:14px;align-items:start}
/* Event venues: How guests paid above Where events came from. */
.sr-side{display:grid;gap:14px;min-width:0}
.sr-panel{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border:1px solid #dbe5ea;border-radius:18px;background:#fff;min-width:0}
.sr-panel h3,.account-page .sr-panel h3{margin:0;font-size:16px;font-weight:800;color:#13302f}
.sr-panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.sr-panel-head small{font-size:12px;color:#4a6264}

.sr-table{width:100%;border-collapse:collapse;font-size:13.5px}
.sr-table th,.sr-table td{padding:8px 6px;border-top:1px solid #eef3f5;text-align:left;vertical-align:middle;color:#13302f}
.sr-table thead th{border-top:0;border-bottom:1px solid #dbe5ea;font-size:12px;font-weight:700;color:#4a6264}
.sr-rooms th:not(:first-child),.sr-rooms td{text-align:right}
.sr-rooms tbody th{font-weight:700}
.sr-rooms .sr-total th,.sr-rooms .sr-total td{border-top:2px solid #dbe5ea;font-weight:800}
.sr-num{text-align:right!important;white-space:nowrap}
.sr-list thead th:nth-child(n+8),.sr-list thead th:nth-child(5){text-align:right}
.sr-strong{font-weight:700}
.sr-due{color:#8a5a00!important;font-weight:700}
.sr-list td a{color:#0b6e69;font-weight:700;text-decoration:none}
.sr-list td a:hover{text-decoration:underline}
.sr-list tr.is-out td{color:#4a6264}
.sr-list td{white-space:nowrap}
.sr-list td:nth-child(3),.sr-list td:nth-child(7){white-space:normal;min-width:110px}
.sr-pill{display:inline-block;padding:3px 9px;border-radius:999px;font-size:11.5px;font-weight:800;white-space:nowrap;background:#e3f2ef;color:#0b6e69}
.sr-staying{background:#e6effa;color:#1c5d99}
.sr-completed{background:#eef1f3;color:#33494a}
.sr-accepted{background:#efe9f8;color:#5b3d99}
.sr-cancelled{background:#fde8e4;color:#a1350c}
.sr-no_show{background:#fff4dc;color:#8a5a00}

.sr-method{display:flex;flex-direction:column;gap:4px}
.sr-method-words{display:flex;justify-content:space-between;gap:8px;font-size:13px}
.sr-method-name{font-weight:700}
.sr-bar{height:8px;border-radius:4px;background:#eef3f5;overflow:hidden}
.sr-bar span{display:block;height:100%;border-radius:4px;background:#13958a}

.sr-list-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sr-list-head h3{margin-right:6px!important}
.sr-chips{display:flex;gap:8px;flex-wrap:wrap}
.sr-chip{height:34px;padding:0 12px;border:1px solid #dbe5ea;border-radius:999px;background:#fff;color:#33494a;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.sr-chip[aria-pressed="true"]{border-color:#0f2b29;background:#0f2b29;color:#fff}
.sr-search{margin-left:auto;display:flex;min-width:200px}
.sr-search input{width:100%;height:36px;padding:0 12px;border:1px solid #dbe5ea;border-radius:12px;background:#fff;color:#13302f;font:inherit;font-size:13px}
.sr-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.sr-list-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12.5px;color:#4a6264}

/* Narrow windows: two numbers a row; the panels stack; the booking list scrolls sideways. */
@media(max-width:900px){
  .sr-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sr-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:640px){
  .sr-head{flex-direction:column;gap:8px}
  /* The four period buttons, two a row. */
  .sr-when{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .sr-when button{padding:0 8px;white-space:nowrap}
  .sr-when button:nth-child(2n){border-right:0}
  .sr-when button:nth-child(-n+2){border-bottom:1px solid #dbe5ea}
  .sr-table th,.sr-table td{padding:7px 4px}
  .sr-rooms{font-size:12.5px}
  .sr-actions{margin-left:0;width:100%}
  .sr-actions>*{flex:1 1 auto}
  .sr-download .sr-primary{width:100%}
  .sr-menu{left:auto;right:0}
  .sr-stat strong{font-size:21px}
  .sr-search{margin-left:0;flex-basis:100%}
}

/* Print: only the report, without its buttons. */
@media print{
  body.sr-printing *{visibility:hidden}
  body.sr-printing .sr,body.sr-printing .sr *{visibility:visible}
  body.sr-printing .sr{position:absolute;left:0;top:0;width:100%}
  body.sr-printing .sr-noprint{display:none!important}
  body.sr-printing .sr-print-only{display:block}
  body.sr-printing .sr-scroll{overflow:visible}
  body.sr-printing .sr-panel,body.sr-printing .sr-stat{break-inside:avoid}
}
