﻿/* ======= FORM ======= */
form {
  /* ======= NAME TICKETS ======= */
  /* Force table to not be like tables anymore */
}
form[action^="./name_tickets.aspx"],
form[action^="./"] {
  /* ======= BUTTONS ======= */
  /* alert boxes and table cells */
}
form[action^="./name_tickets.aspx"] [id*="btnPromoCode"].btn,
form[action^="./"] [id*="btnPromoCode"].btn {
  margin-bottom: 0px;
}
@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) {
  form[action^="./name_tickets.aspx"] [id$="gvResults"].table,
  form[action^="./"] [id$="gvResults"].table,
  form[action^="./name_tickets.aspx"] [id$="gvEvents"].table,
  form[action^="./"] [id$="gvEvents"].table {
    /* Hide table headers (but not display: none;, for accessibility) */
    /* Item header */
    /* Label the data */
  }
  form[action^="./name_tickets.aspx"] [id$="gvResults"].table thead,
  form[action^="./"] [id$="gvResults"].table thead,
  form[action^="./name_tickets.aspx"] [id$="gvEvents"].table thead,
  form[action^="./"] [id$="gvEvents"].table thead,
  form[action^="./name_tickets.aspx"] [id$="gvResults"].table tbody,
  form[action^="./"] [id$="gvResults"].table tbody,
  form[action^="./name_tickets.aspx"] [id$="gvEvents"].table tbody,
  form[action^="./"] [id$="gvEvents"].table tbody,
  form[action^="./name_tickets.aspx"] [id$="gvResults"].table th,
  form[action^="./"] [id$="gvResults"].table th,
  form[action^="./name_tickets.aspx"] [id$="gvEvents"].table th,
  form[action^="./"] [id$="gvEvents"].table th,
  form[action^="./name_tickets.aspx"] [id$="gvResults"].table td,
  form[action^="./"] [id$="gvResults"].table td,
  form[action^="./name_tickets.aspx"] [id$="gvEvents"].table td,
  form[action^="./"] [id$="gvEvents"].table td,
  form[action^="./name_tickets.aspx"] [id$="gvResults"].table tr,
  form[action^="./"] [id$="gvResults"].table tr,
  form[action^="./name_tickets.aspx"] [id$="gvEvents"].table tr,
  form[action^="./"] [id$="gvEvents"].table tr {
    display: block;
  }
  form[action^="./name_tickets.aspx"] [id$="gvResults"].table thead tr,
  form[action^="./"] [id$="gvResults"].table thead tr,
  form[action^="./name_tickets.aspx"] [id$="gvEvents"].table thead tr,
  form[action^="./"] [id$="gvEvents"].table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  form[action^="./name_tickets.aspx"] [id$="gvResults"].table tr,
  form[action^="./"] [id$="gvResults"].table tr,
  form[action^="./name_tickets.aspx"] [id$="gvEvents"].table tr,
  form[action^="./"] [id$="gvEvents"].table tr {
    /*border: 1px solid #ccc;*/
  }
  form[action^="./name_tickets.aspx"] [id$="gvResults"].table td,
  form[action^="./"] [id$="gvResults"].table td,
  form[action^="./name_tickets.aspx"] [id$="gvEvents"].table td,
  form[action^="./"] [id$="gvEvents"].table td {
    /* Behave  like a "row" */
    border: none !important;
    position: relative;
    padding-left: 50%;
    min-height: 2rem;
    word-break: break-all;
  }
  form[action^="./name_tickets.aspx"] [id$="gvResults"].table td:before,
  form[action^="./"] [id$="gvResults"].table td:before,
  form[action^="./name_tickets.aspx"] [id$="gvEvents"].table td:before,
  form[action^="./"] [id$="gvEvents"].table td:before {
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
    line-height: 1.4;
  }
  form[action^="./name_tickets.aspx"] [id$="gvResults"].table td:nth-of-type(1),
  form[action^="./"] [id$="gvResults"].table td:nth-of-type(1),
  form[action^="./name_tickets.aspx"] [id$="gvEvents"].table td:nth-of-type(1),
  form[action^="./"] [id$="gvEvents"].table td:nth-of-type(1) {
    width: 100% !important;
    border-bottom: 1px solid #ccc !important;
    border-top: 1px solid #ccc !important;
  }
  form[action^="./name_tickets.aspx"] [id$="gvResults"].table td:nth-of-type(2):before,
  form[action^="./"] [id$="gvResults"].table td:nth-of-type(2):before,
  form[action^="./name_tickets.aspx"] [id$="gvEvents"].table td:nth-of-type(2):before,
  form[action^="./"] [id$="gvEvents"].table td:nth-of-type(2):before {
    content: "Item";
  }
  form[action^="./name_tickets.aspx"] [id$="gvResults"].table td:nth-of-type(3):before,
  form[action^="./"] [id$="gvResults"].table td:nth-of-type(3):before,
  form[action^="./name_tickets.aspx"] [id$="gvEvents"].table td:nth-of-type(3):before,
  form[action^="./"] [id$="gvEvents"].table td:nth-of-type(3):before {
    content: "Order Info";
  }
  form[action^="./name_tickets.aspx"] [id$="gvResults"].table td:nth-of-type(4):before,
  form[action^="./"] [id$="gvResults"].table td:nth-of-type(4):before,
  form[action^="./name_tickets.aspx"] [id$="gvEvents"].table td:nth-of-type(4):before,
  form[action^="./"] [id$="gvEvents"].table td:nth-of-type(4):before {
    content: "Name";
  }
  form[action^="./name_tickets.aspx"] [id$="gvResults"].table td:nth-of-type(5):before,
  form[action^="./"] [id$="gvResults"].table td:nth-of-type(5):before,
  form[action^="./name_tickets.aspx"] [id$="gvEvents"].table td:nth-of-type(5):before,
  form[action^="./"] [id$="gvEvents"].table td:nth-of-type(5):before {
    content: "Options";
  }
  form[action^="./name_tickets.aspx"] [id$="gvEvents"] [id$="gvResults"].table tr:first-child,
  form[action^="./"] [id$="gvEvents"] [id$="gvResults"].table tr:first-child {
    display: none;
  }
}
form[action^="./name_tickets.aspx"] .alert,
form[action^="./"] .alert,
form[action^="./name_tickets.aspx"] td,
form[action^="./"] td {
  overflow-wrap: break-word;
}