// Customer display standalone page: resources/views/customer_display.blade.php
// body.cd-shell-page scopes full-page background so shared master.css does not affect auth/other routes.
// Rules under #customer-display.cd-root apply only before Vue mount (el is replaced); they do not target the mounted UI.

body.cd-shell-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #0b0c10;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
}

body.cd-shell-page #customer-display.cd-root {
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  .cd-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .cd-header img {
    max-height: 54px;
  }

  .cd-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow: hidden;
  }

  .cd-list {
    flex: 1;
    overflow: auto;
  }

  .cd-item {
    display: grid;
    grid-template-columns: 1fr 80px 120px;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    font-size: 22px;
  }

  .cd-item .qty {
    text-align: center;
  }

  .cd-item .subtotal {
    text-align: right;
  }

  .cd-totals {
    margin-top: 12px;
    font-size: 24px;
  }

  .cd-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
  }

  .cd-grand {
    font-size: 34px;
    font-weight: 700;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 6px;
  }

  .cd-footer {
    padding: 18px;
    text-align: center;
    font-size: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .cd-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    opacity: 0.8;
  }
}

body.cd-shell-page.light #customer-display.cd-root {
  background: #f8fafc;
  color: #111827;

  .cd-item {
    border-color: rgba(0, 0, 0, 0.06);
  }

  .cd-header,
  .cd-footer {
    border-color: rgba(0, 0, 0, 0.08);
  }
}
