/*
 * Pixel Envision theme for the osTicket customer pages.
 * Loaded after osTicket's own stylesheets (see include/client/header.inc.php)
 * and matches pixelenvision.com: Unbounded + Figtree, indigo ink on cool paper,
 * the logo's cube colours, and chunky buttons with an ink "step" shadow.
 */

@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/unbounded-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/unbounded-latin-700-normal.woff2") format("woff2"); }

:root {
  --pe-paper: #F6F7FB;
  --pe-card: #FFFFFF;
  --pe-ink: #1B1A3A;
  --pe-muted: #545373;
  --pe-line: #E2E5F0;
  --pe-field: #CBD0E2;
  --pe-indigo: #3B3FD8;
  --pe-indigo-dark: #2E31B5;
  --pe-coral: #F0524D;
  --pe-sun: #FFC83D;
  --pe-sky: #35C2E0;
  --pe-green: #41B85A;
  --pe-radius: 14px;
  --pe-display: "Unbounded", "Figtree", system-ui, sans-serif;
  --pe-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */

body.pe {
  background: var(--pe-paper);
  color: var(--pe-ink);
  font-family: var(--pe-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.pe input,
body.pe select,
body.pe textarea,
body.pe button {
  font-family: var(--pe-body);
  color: var(--pe-ink);
}
.pe a, .pe .link { color: var(--pe-indigo); text-decoration: none; }
.pe a:hover, .pe .link:hover { color: var(--pe-indigo-dark); text-decoration: underline; text-underline-offset: 3px; }
.pe :focus-visible { outline: 3px solid var(--pe-indigo); outline-offset: 2px; border-radius: 6px; }

.pe h1, .pe h2 {
  font-family: var(--pe-display);
  font-weight: 600;
  color: var(--pe-ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pe h1 { font-size: clamp(26px, 3.2vw, 34px); margin: 0 0 14px; }
.pe h2 { font-size: 20px; margin: 28px 0 12px; }
.pe h3 { font-family: var(--pe-body); font-weight: 700; font-size: 17px; color: var(--pe-ink); margin: 20px 0 8px; }
.pe hr { border-top-color: var(--pe-line); }
.pe .faded, .pe .faded-more { color: var(--pe-muted); }

.pe-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.pe-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* The stock layout is a fixed 840px white box; open it up. */
.pe #container { width: auto; background: none; box-shadow: none; margin: 0; }

/* ---------- Header ---------- */

.pe #header.pe-header { background: var(--pe-card); border-bottom: 1px solid var(--pe-line); position: relative; height: auto; padding: 0; }
.pe-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.pe .pe-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--pe-ink); height: auto; }
.pe .pe-brand:hover { text-decoration: none; color: var(--pe-ink); }
.pe #header #logo img { width: 40px; height: 40px; max-height: none; }
.pe #header #logo { height: auto; }
.pe-brand-name { font-family: var(--pe-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.pe-brand-sub {
  font-weight: 600; font-size: 14px; color: var(--pe-indigo);
  background: #ECEDFD; border-radius: 999px; padding: 3px 10px;
}
.pe-account { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; font-weight: 600; }
.pe .pe-account a { color: var(--pe-ink); }
.pe .pe-account a:hover { color: var(--pe-indigo); }
.pe-account-name { color: var(--pe-muted); font-weight: 500; }
.pe .pe-account .flag { margin: 0; }

/* Section tabs, restyled from the stock icon pills. */
.pe #nav {
  display: flex; gap: 4px; margin: 0; padding: 0; height: auto;
  background: none; border: 0; box-shadow: none;
  overflow-x: auto; scrollbar-width: none;
}
.pe #nav::-webkit-scrollbar { display: none; }
.pe #nav li { display: block; }
.pe #nav li a,
.rtl.pe #nav li a {
  display: block; height: auto; line-height: 1.2; margin: 0;
  padding: 12px 14px 13px; border-radius: 0;
  background: none !important; color: var(--pe-muted);
  font-weight: 600; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.pe #nav li a:hover { color: var(--pe-ink); background: none; text-decoration: none; }
.pe #nav li a.active { color: var(--pe-ink); border-bottom-color: var(--pe-indigo); }

/* ---------- Content ---------- */

.pe #content { margin: 0 auto; padding: 44px 20px 72px; min-height: 50vh; }

/* Messages */
.pe #msg_error, .pe #msg_notice, .pe #msg_warning, .pe #msg_info,
.pe .error_bar, .pe .warning_bar, .pe .notice_bar {
  border: 0; border-left: 4px solid; border-radius: 10px;
  padding: 12px 16px; margin: 0 0 20px; background-image: none;
  font-weight: 500; color: var(--pe-ink);
}
.pe #msg_error, .pe .error_bar { background-color: #FDECEB; border-color: var(--pe-coral); }
.pe #msg_notice, .pe .notice_bar, .pe #msg_info { background-color: #E6F7FB; border-color: var(--pe-sky); }
.pe #msg_warning, .pe .warning_bar { background-color: #FFF6DC; border-color: var(--pe-sun); }
.pe .error { color: #C9302C; }
.pe .error_bar, .pe .warning_bar, .pe .notice_bar { margin: 0; border-radius: 0; text-align: center; }

/* ---------- Fields ---------- */

.pe input[type="text"], .pe input[type="email"], .pe input[type="password"],
.pe input[type="search"], .pe input[type="tel"], .pe input[type="number"],
.pe input[type="url"], .pe input[type="date"], .pe select, .pe textarea {
  border: 1.5px solid var(--pe-field); border-radius: 10px;
  background: var(--pe-card); padding: 9px 12px; font-size: 16px;
  max-width: 100%; box-sizing: border-box; box-shadow: none;
}
.pe select { padding-right: 8px; }
.pe input:focus, .pe select:focus, .pe textarea:focus {
  outline: none; border-color: var(--pe-indigo);
  box-shadow: 0 0 0 3px rgba(59, 63, 216, 0.2);
}
.pe label { font-weight: 600; }
.pe label.required, .pe span.required,
.pe #ticketForm div label.required, .pe #clientLogin div label.required { color: var(--pe-ink); font-weight: 600; }
.pe span.error { color: #C9302C; }

/* ---------- Buttons ---------- */

.pe .button, .pe .button:visited, .pe .btn, .pe button,
.pe input[type="submit"], .pe input[type="button"], .pe input[type="reset"], .pe .pe-button {
  display: inline-block; cursor: pointer;
  font-family: var(--pe-body); font-weight: 700; font-size: 16px; line-height: 1.2;
  padding: 12px 20px; border-radius: 12px; border: 2px solid var(--pe-ink);
  background: var(--pe-indigo); color: #fff; text-shadow: none; height: auto;
  box-shadow: 0 4px 0 var(--pe-ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.pe .button:hover, .pe .btn:hover, .pe button:hover, .pe input[type="submit"]:hover, .pe .pe-button:hover {
  background: var(--pe-indigo-dark); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 5px 0 var(--pe-ink);
}
.pe .button:active, .pe .btn:active, .pe button:active, .pe input[type="submit"]:active,
.pe input[type="button"]:active, .pe input[type="reset"]:active {
  transform: translateY(3px); box-shadow: 0 1px 0 var(--pe-ink);
}
/* Reset / Cancel are the quieter choices. */
.pe input[type="reset"], .pe input[type="button"], .pe .button.gray, .pe .green.button, .pe .green.button:visited {
  background: var(--pe-card); color: var(--pe-ink);
}
.pe input[type="reset"]:hover, .pe input[type="button"]:hover, .pe .green.button:hover {
  background: #EEF0F8; color: var(--pe-ink); transform: translateY(-1px); box-shadow: 0 5px 0 var(--pe-ink);
}
.pe .blue.button, .pe .blue.button:visited { background: var(--pe-indigo); color: #fff; }
/* osticket.js paints the submit text red once a form has changes; on an indigo button that's unreadable. */
.pe input[type="submit"] { color: #fff !important; }

/* ---------- Home ---------- */

.pe-hero { padding: 8px 0 8px; }
.pe-hero-text h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 14px; max-width: 16em; }
.pe-hero-text p { font-size: 19px; color: var(--pe-muted); max-width: 34em; margin: 0 0 8px; }

/* The search plate: one ink-outlined field with its button inside. */
.pe .pe-search {
  display: flex; align-items: stretch; gap: 8px; max-width: 680px; margin-top: 28px;
  background: var(--pe-card); border: 2px solid var(--pe-ink); border-radius: 18px;
  padding: 8px; box-shadow: 0 6px 0 var(--pe-ink);
}
.pe .pe-search input[type="search"] {
  flex: 1; min-width: 0; border: 0; box-shadow: none; font-size: 18px; padding: 10px 12px; background: transparent;
}
.pe .pe-search input[type="search"]:focus { box-shadow: none; }
.pe .pe-search:focus-within { box-shadow: 0 6px 0 var(--pe-ink), 0 0 0 4px rgba(59, 63, 216, 0.25); }
.pe .pe-search .pe-button { box-shadow: none; border-color: var(--pe-indigo); }
.pe .pe-search .pe-button:hover { transform: none; box-shadow: none; }

.pe-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 48px 0 8px; }
.pe .pe-action {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px 26px 26px; border-radius: 20px; border: 2px solid var(--pe-ink);
  background: var(--pe-card); color: var(--pe-ink); box-shadow: 0 6px 0 var(--pe-ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.pe .pe-action:hover { text-decoration: none; color: var(--pe-ink); transform: translateY(-2px); box-shadow: 0 8px 0 var(--pe-ink); }
.pe .pe-action:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--pe-ink); }
.pe .pe-action-open { background: var(--pe-indigo); color: #fff; }
.pe .pe-action-open:hover { color: #fff; }
.pe-action-title { font-family: var(--pe-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.pe-action-text { font-size: 16px; opacity: 0.85; }

.pe-topics { margin-top: 56px; }
.pe-topics > h2 { font-size: 24px; margin: 0 0 18px; }
.pe-topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pe-topic { background: var(--pe-card); border: 1px solid var(--pe-line); border-radius: 16px; padding: 18px 20px 10px; }
.pe .pe-topic h3 { margin: 0 0 6px; font-size: 17px; }
.pe .pe-topic h3 a { color: var(--pe-ink); }
.pe-topic ul { list-style: none; margin: 0; padding: 0; }
.pe-topic li { border-top: 1px solid var(--pe-line); }
.pe-topic li:first-child { border-top: 0; }
.pe .pe-topic li a { display: block; padding: 9px 0; font-weight: 500; }
.pe-topics-all { margin: 18px 0 0; font-weight: 700; }
.pe-resources { margin-top: 40px; }
.pe-resources ul { padding-left: 20px; }

/* ---------- Knowledge base ---------- */

.pe .row { display: flex; flex-wrap: wrap; gap: 32px; margin: 0; }
.pe .row:before, .pe .row:after { display: none; }
.pe .span8 { flex: 1 1 560px; width: auto; float: none; margin: 0; min-width: 0; }
.pe .span4 { flex: 0 1 300px; width: auto; float: none; margin: 0; }
.pe .sidebar { width: auto; float: none; margin: 0; }
.pe .sidebar .content, .pe .sidebar .searchbar {
  background: var(--pe-card); border: 1px solid var(--pe-line); border-radius: 16px; padding: 16px 18px; margin-bottom: 16px;
}
/* osTicket prints the "Other Resources" box even when it lists nothing. */
.pe .sidebar .content:not(:has(a)) { display: none; }
.pe .sidebar .header { font-family: var(--pe-display); font-weight: 600; font-size: 15px; color: var(--pe-ink); margin: 4px 0 8px; }
.pe .sidebar .searchbar input[type="text"], .pe .sidebar .searchbar select { width: 100%; margin-bottom: 8px; }
.pe #kb { padding: 0; margin: 0; display: grid; gap: 14px; }
.pe #kb > li {
  list-style: none; background: var(--pe-card); border: 1px solid var(--pe-line); border-radius: 16px;
  padding: 18px 20px; margin: 0; width: auto; float: none; min-height: 0;
}
.pe #kb > li > i { display: none; }
.pe #kb > li > div[style] { margin-left: 0 !important; }
.pe #kb > li .faded[style] { margin: 4px 0 10px !important; }
.pe #kb > li h4 { font-family: var(--pe-display); font-weight: 600; font-size: 18px; margin: 0 0 6px; }
.pe #kb > li h4 a { color: var(--pe-ink); }
.pe #kb > li h4 span { color: var(--pe-muted); font-family: var(--pe-body); font-weight: 500; font-size: 15px; }
.pe .popular-faq { padding: 4px 0; }
.pe .popular-faq i, .pe #kb i.icon-folder-open { color: var(--pe-muted); margin-right: 6px; }
.pe #breadcrumbs, .pe .breadcrumbs { color: var(--pe-muted); margin-bottom: 12px; }
.pe .faq-content { background: var(--pe-card); border: 1px solid var(--pe-line); border-radius: 18px; padding: 24px 28px; }
.pe .faq-content .article-title { font-family: var(--pe-display); font-weight: 600; font-size: 24px; line-height: 1.25; color: var(--pe-ink); }
.pe .thread-body { font-family: var(--pe-body); font-size: 17px; line-height: 1.65; }
/* osTicket's thread.css forces 14px with !important, which shrank FAQ lists. */
.pe .faq-content .thread-body { font-size: 17px !important; line-height: 1.65; color: var(--pe-ink); background: transparent; padding: 0; margin-top: 12px; }
.pe .faq-content .thread-body p { font-size: inherit !important; line-height: inherit; color: inherit; margin: 0 0 12px; }
.pe .faq-content .thread-body ol, .pe .faq-content .thread-body ul { font-size: inherit !important; margin: 0 0 14px; padding-left: 24px; }
.pe .faq-content .thread-body li { font-size: inherit; line-height: 1.55; margin-bottom: 6px; }
.pe .faq-content .thread-body a { color: var(--pe-indigo); }
.pe .featured-category { width: auto; float: none; }

/* ---------- Forms (open ticket, sign in, register) ---------- */

.pe #ticketForm table, .pe #clientLogin table, .pe form table { width: 100% !important; max-width: 100%; }
.pe #ticketForm, .pe #clientLogin {
  background: var(--pe-card); border: 1px solid var(--pe-line); border-radius: 18px; padding: 20px 24px;
}
.pe #ticketForm > table > tbody > tr > td,
.pe #ticketForm td { padding-top: 4px; padding-bottom: 4px; }
.pe #ticketForm hr, .pe .form-header + hr { border-top-color: var(--pe-line); }
.pe #ticketForm input[type="text"], .pe #ticketForm input[type="email"],
.pe #ticketForm select, .pe #ticketForm textarea { width: 100%; max-width: 560px; }
.pe #ticketForm input[size="5"], .pe #ticketForm input.ext { width: auto; }
/* CAPTCHA: stock puts the label in a left column and floats the image; stack it
   like the other fields (label, then image and box side by side, then hint). */
.pe #ticketForm tr.captchaRow td { display: block; padding-left: 0; padding-right: 0; }
.pe #ticketForm tr.captchaRow td.required { font-weight: 600; color: var(--pe-ink); padding-top: 18px; }
.pe #ticketForm tr.captchaRow td.required::after { content: " *"; color: var(--pe-coral); }
.pe #ticketForm tr.captchaRow span.captcha { display: inline-block; float: none; width: auto; height: auto; margin: 0 8px 0 0; vertical-align: middle; background: none; }
.pe #ticketForm tr.captchaRow .captcha img { display: block; float: none; height: 44px; width: auto; border-radius: 10px; border: 1px solid var(--pe-line); }
.pe #ticketForm tr.captchaRow #captcha { display: inline-block; vertical-align: middle; width: 170px; max-width: 170px; }
.pe #ticketForm tr.captchaRow em { display: block; margin-top: 8px; color: var(--pe-muted); font-size: 15px; }
.pe #ticketForm tr.captchaRow font.error { display: none; }
.pe .form-header h3, .pe .form-header b { font-family: var(--pe-display); font-weight: 600; font-size: 18px; }
.pe p.buttons, .pe .buttons { margin-top: 16px; }
.pe p.buttons input, .pe .buttons input { margin: 0 8px 8px 0; }
.pe .redactor-box, .pe .redactor-toolbar, .pe .redactor-editor { border-radius: 10px; }
.pe .redactor-box { border: 1.5px solid var(--pe-field); overflow: hidden; }

.pe #clientLogin { display: block; margin-top: 8px; box-shadow: none; background: var(--pe-card) none; }
.pe .login-box { box-shadow: none; }
.pe #clientLogin .instructions { padding-right: 0; }
.pe #clientLogin strong { font-size: 14px; color: #C9302C; }
/* Stock "#clientLogin div input" / "#ticketForm div input" rules style every input,
   buttons included, so restate fields and buttons at that strength. */
.pe #clientLogin div input[type="text"], .pe #clientLogin div input[type="password"], .pe #clientLogin div input[type="email"],
.pe #ticketForm div input[type="text"], .pe #ticketForm div input[type="email"] {
  border: 1.5px solid var(--pe-field); border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; width: 100%; box-sizing: border-box;
}
.pe #clientLogin div input:focus, .pe #ticketForm div input:focus { border-color: var(--pe-indigo); }
.pe #clientLogin div input[type="submit"], .pe #clientLogin input[type="submit"],
.pe #ticketForm div input[type="submit"] {
  display: inline-block; width: auto; background: var(--pe-indigo); border: 2px solid var(--pe-ink);
  padding: 12px 20px; border-radius: 12px; margin: 4px 0 0;
}
.pe #clientLogin div input[type="submit"]:hover, .pe #ticketForm div input[type="submit"]:hover { background: var(--pe-indigo-dark); }
.pe #clientLogin .login-box { display: table-cell; width: 320px; padding: 4px 24px 8px 0; border-right: 1px solid var(--pe-line); vertical-align: top; }
.pe #clientLogin .login-box > div { margin-bottom: 10px; }
.pe #clientLogin .login-box input[type="text"], .pe #clientLogin .login-box input[type="password"] { width: 100%; }
.pe #clientLogin .login-box > p { margin: 14px 0 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Tickets list and thread ---------- */

.pe #ticketTable, .pe table.list {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--pe-card); border: 1px solid var(--pe-line); border-radius: 14px; overflow: hidden;
}
.pe #ticketTable th, .pe table.list th {
  background: #EEF0F8; color: var(--pe-ink); font-weight: 700; text-align: left; padding: 10px 12px; border: 0;
}
.pe #ticketTable th a { color: var(--pe-ink); }
.pe #ticketTable td, .pe table.list td { padding: 10px 12px; border-top: 1px solid var(--pe-line); }
.pe .thread-entry .header { border-radius: 12px 12px 0 0; }
.pe .thread-entry .thread-body { border-radius: 0 0 12px 12px; }
.pe .thread-entry.response .header { background: #ECEDFD; border-color: #CFD1F6; }
.pe .thread-entry.message .header { background: #E6F7FB; border-color: #BFE7F1; }
.pe #ticketInfo { width: 100% !important; margin-bottom: 20px; }
.pe #ticketInfo h1 { margin-bottom: 8px; }
.pe #ticketInfo .infoTable th { color: var(--pe-ink); border-bottom-color: var(--pe-line); }
.pe #reply {
  background: var(--pe-card); border: 1px solid var(--pe-line); border-radius: 18px; padding: 8px 24px 20px; margin-top: 24px;
}
.pe #reply h2 { border-bottom: 0; margin-bottom: 4px; }
.pe .search.well {
  background: var(--pe-card); border: 1px solid var(--pe-line); border-radius: 16px; padding: 14px 16px; box-shadow: none;
}
.pe #ticketSearchForm input[type="text"] { margin-right: 8px; }
.pe #ticketTable caption {
  background: none; text-align: left; padding: 0 0 8px; font-weight: 600; color: var(--pe-muted); border: 0;
}
.pe .states a.state { font-family: var(--pe-display); font-weight: 600; font-size: 18px; }
.pe h1 .refresh, .pe h1 .icon-refresh { color: var(--pe-green); font-size: 0.7em; vertical-align: middle; }

/* ---------- Footer ---------- */

.pe #footer.pe-footer { background: var(--pe-card); border-top: 1px solid var(--pe-line); text-align: left; font-size: 15px; color: var(--pe-muted); }
.pe-footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-top: 40px; padding-bottom: 32px; }
.pe-footer-company { max-width: 30em; }
.pe #footer .pe-footer-company p { margin: 0 0 8px; }
.pe-footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--pe-display); font-weight: 600; font-size: 15px; color: var(--pe-ink); }
.pe #footer .pe-footer-legal { font-size: 13px; }
.pe-footer-links { display: flex; flex-direction: column; gap: 10px; }
.pe .pe-footer-links a { color: var(--pe-ink); font-weight: 600; }
.pe .pe-footer-links a:hover { color: var(--pe-indigo); }
.pe #footer .pe-footer-bottom {
  flex-basis: 100%; margin: 0; padding-top: 20px; border-top: 1px solid var(--pe-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px;
}
/* Stock osTicket shows its credit as an image; keep it as quiet text. */
.pe #footer #poweredBy {
  display: inline; width: auto; height: auto; margin: 0; text-indent: 0; background: none;
  color: var(--pe-muted); font-size: 13px;
}

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  .pe-header-row { min-height: 64px; }
  .pe .pe-brand { gap: 10px; }
  .pe #header #logo img { width: 34px; height: 34px; }
  .pe-brand-name { font-size: 15px; }
  .pe .pe-site-link, .pe .pe-account-name { display: none; }
  .pe-account { gap: 4px 14px; }
  .pe #ticketInfo, .pe #ticketInfo > tbody, .pe #ticketInfo > tbody > tr, .pe #ticketInfo > tbody > tr > td { display: block; width: 100% !important; }
  .pe #reply { padding: 4px 14px 16px; }
  .pe .search.well .pull-right { float: none; margin-top: 10px; }
  .pe #content { padding-top: 28px; padding-bottom: 56px; }
  .pe .pe-search { margin-top: 22px; }
  .pe #nav { flex-wrap: wrap; gap: 0 2px; overflow: visible; }
  .pe #nav li a, .rtl.pe #nav li a { padding: 10px 10px 11px; font-size: 15px; }
  .pe #clientLogin .instructions { display: block; padding: 16px 0 0; }
  .pe .pe-search .pe-button { padding: 10px 14px; }
  .pe-actions { margin-top: 36px; }
  .pe #ticketForm, .pe #clientLogin { padding: 16px; }
  .pe #ticketForm table, .pe #ticketForm tbody, .pe #ticketForm tr, .pe #ticketForm td,
  .pe form table.padded, .pe form table.padded tbody, .pe form table.padded tr, .pe form table.padded td { display: block; width: 100% !important; box-sizing: border-box; }
  .pe form table.padded td { padding: 2px 0; }
  .pe form table.padded input[type="password"], .pe form table.padded input[type="text"] { width: 100%; }
  .pe #clientLogin .login-box { display: block; width: auto; padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--pe-line); }
  .pe #clientLogin > div[style] { display: block !important; }
  .pe #clientLogin div[style*="table-cell"] { display: block !important; padding: 16px 0 0 !important; }
  .pe #ticketTable { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .pe * { transition: none !important; }
}
