[hidden] {
  display: none !important;
}

:root {
  --bg: #f4f1e9;
  --ink: #15181b;
  --dark: #171b20;
  --dark2: #252b34;
  --yellow: #e6d900;
  --muted: #6d737c;
  --card: #ffffff;
  --line: #dedbd1;
  --danger: #a93636;
  --success: #307748;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: linear-gradient(135deg, #f6f3eb, #eae7df);
  color: var(--ink);
}

/*
 * A dedicated Ajerosa OS scrollbar keeps long dashboards usable
 * even when macOS is configured to hide the browser's outer bar.
 */
#appView:not([hidden]) {
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: var(--yellow) var(--dark);
  scrollbar-width: auto;
}

#appView::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
dialog::-webkit-scrollbar,
.ai-report-content::-webkit-scrollbar,
.ai-conversation-messages::-webkit-scrollbar {
  width: 13px;
  height: 13px;
}

#appView::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track,
dialog::-webkit-scrollbar-track,
.ai-report-content::-webkit-scrollbar-track,
.ai-conversation-messages::-webkit-scrollbar-track {
  background: var(--dark);
}

#appView::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
dialog::-webkit-scrollbar-thumb,
.ai-report-content::-webkit-scrollbar-thumb,
.ai-conversation-messages::-webkit-scrollbar-thumb {
  min-height: 48px;
  background: var(--yellow);
  border: 3px solid var(--dark);
  border-radius: 999px;
}

#appView::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:hover,
dialog::-webkit-scrollbar-thumb:hover,
.ai-report-content::-webkit-scrollbar-thumb:hover,
.ai-conversation-messages::-webkit-scrollbar-thumb:hover {
  background: #f2c94c;
}

.table-wrap,
dialog,
.ai-report-content,
.ai-conversation-messages {
  scrollbar-color: var(--yellow) var(--dark);
  scrollbar-width: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Outfit, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 34px;
  color: #ffffff;
  background: linear-gradient(120deg, var(--dark), var(--dark2));
  border-bottom: 3px solid var(--yellow);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-icon {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.subtitle {
  margin: 4px 0 0;
  color: #cfd3d9;
}

.header-actions,
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 14px 28px;
  overflow-x: auto;
  background: #222831;
}

.main-nav button {
  padding: 10px 16px;
  color: #ced3da;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 22px;
}

.main-nav button.active {
  color: #15181b;
  background: var(--yellow);
}

main {
  max-width: 1500px;
  padding: 28px;
  margin: auto;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stats article,
.card,
.hero-panel,
.table-wrap,
.submission-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.stats article {
  padding: 20px;
  border-left: 5px solid var(--yellow);
}

.stats span {
  display: block;
  color: var(--muted);
}

.stats strong {
  display: block;
  margin-top: 8px;
  font: 800 30px Outfit, sans-serif;
}

.hero-panel {
  padding: 30px;
  margin-top: 24px;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.95)
    ),
    url("/assets/ajerosa-app-icon-512.png");
  background-repeat: no-repeat;
  background-position: 95% center;
  background-size: 190px;
}

.overview-stats {
  grid-template-columns: repeat(
    auto-fit,
    minmax(180px, 1fr)
  );
}

.overview-stats .low-stock-stat {
  border-left-color: #d97706;
}

.overview-stats .low-stock-stat strong {
  color: #9a3412;
}

.overview-low-stock-panel {
  background-image: none;
}

.overview-low-stock-panel .panel-heading {
  margin-bottom: 14px;
}

.overview-low-stock-panel .table-wrap {
  padding: 0;
  box-shadow: none;
}

.overview-low-stock-panel table {
  min-width: 650px;
}

.overview-low-stock-summary {
  margin: 0 0 14px;
  color: var(--muted);
}

.overview-stock-clear {
  padding: 18px;
  color: var(--success);
  font-weight: 700;
  background: #eef8f0;
  border: 1px solid #cfe7d5;
  border-radius: 12px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.panel-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.card-grid,
.submission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card,
.submission-card {
  padding: 18px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.muted {
  color: var(--muted);
}

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}

.details div {
  padding: 10px;
  background: #f1efe9;
  border-radius: 10px;
}

.details span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.badge {
  display: inline-block;
  padding: 6px 9px;
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
  background: #dcebdd;
  border-radius: 999px;
}

.badge.pending {
  color: #735d00;
  background: #fff2bb;
}

.badge.rejected {
  color: #8e2525;
  background: #f5d5d5;
}

.primary,
.secondary,
.danger {
  padding: 11px 15px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
  border-radius: 10px;
}

.primary {
  color: #111111;
  background: var(--yellow);
}

.secondary {
  color: var(--ink);
  background: #e4e6e8;
}

.danger {
  color: var(--danger);
  background: #f4d7d7;
}

.primary:hover,
.secondary:hover,
.danger:hover {
  filter: brightness(0.97);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-wrap {
  width: 100%;
  padding: 8px;
  overflow-x: auto;
}

.table-wrap table {
  min-width: 900px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td button {
  margin: 2px 4px 2px 0;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    linear-gradient(
      rgba(17, 19, 21, 0.92),
      rgba(17, 19, 21, 0.92)
    ),
    url("/assets/ajerosa-full-logo.jpg") center / cover;
}

.auth-card {
  width: min(430px, 92vw);
  padding: 28px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 30px 80px #0008;
}

.full-logo {
  width: 100%;
  margin-bottom: 18px;
  border-radius: 14px;
}

.auth-card input,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #cfd2d5;
  border-radius: 9px;
}

.form-grid textarea {
  min-height: 100px;
  resize: vertical;
}

.auth-card input {
  margin: 7px 0;
}

.auth-card button {
  width: 100%;
  margin-top: 10px;
}

.error {
  color: var(--danger);
}

dialog {
  width: min(760px, 94vw);
  max-height: 90vh;
  padding: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 18px;
}

dialog::backdrop {
  background: #0009;
}

dialog form {
  padding: 22px;
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-button {
  padding: 4px 8px;
  font-size: 26px;
  cursor: pointer;
  background: none;
  border: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

.form-grid label {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.form-grid label.wide,
.form-grid .wide {
  grid-column: 1 / -1;
}

.photo {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-radius: 10px;
}

.owner-only[hidden],
.owner-manager[hidden] {
  display: none !important;
}

#toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  padding: 13px 18px;
  color: #ffffff;
  background: #111111;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.2s;
}

#toast.show {
  opacity: 1;
  transform: none;
}

.goods-receipt-item-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
  background: #f8fafc;
  border: 1px solid #d8dde3;
  border-radius: 14px;
}

.goods-receipt-item-row .wide {
  grid-column: 1 / -1;
}

.goods-receipt-item-row .removeGoodsReceiptItem {
  width: fit-content;
}

.header-actions input,
.header-actions select {
  min-height: 42px;
  padding: 9px 12px;
  background: #ffffff;
  border: 1px solid #cfd6de;
  border-radius: 9px;
}

#reportContent {
  display: grid;
  gap: 22px;
}

#reportContent .hero-panel {
  margin-top: 0;
  overflow: hidden;
}

#companyList small,
#goodsReceiptList small {
  color: #667085;
}

#aiRequestList td,
#goodsReceiptList td,
#companyList td {
  vertical-align: top;
}

@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .overview-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panel-heading {
    align-items: flex-start;
  }

  .header-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 800px) {
  .topbar {
    align-items: flex-start;
    gap: 20px;
  }

  .brand-icon {
    width: 55px;
    height: 55px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid label.wide,
  .form-grid .wide {
    grid-column: auto;
  }

  .panel-heading {
    align-items: flex-start;
    gap: 15px;
  }

  .stats article {
    padding: 14px;
  }

  .overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goods-receipt-item-row {
    grid-template-columns: 1fr;
  }

  .goods-receipt-item-row .wide {
    grid-column: auto;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .header-actions input,
  .header-actions select,
  .header-actions button {
    flex: 1 1 160px;
  }
}

@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .overview-stats {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    padding: 20px;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions input,
  .header-actions select,
  .header-actions button {
    width: 100%;
  }

  main {
    padding: 18px;
  }

  .panel-heading {
    flex-direction: column;
  }

  .panel-heading > button {
    width: 100%;
  }

  .details {
    grid-template-columns: 1fr;
  }
}
/* ==================================================
   AJEROSA AI REPORT DIALOG
================================================== */

.ai-report-dialog {
  width: min(920px, calc(100vw - 32px));
  max-width: 920px;
  height: min(820px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.ai-report-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
}

.ai-report-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.ai-report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ai-report-header h2 {
  margin: 2px 0 4px;
}

.ai-report-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ai-report-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  line-height: 1.65;
}

.ai-report-content h2,
.ai-report-content h3,
.ai-report-content h4,
.ai-report-content h5 {
  margin: 24px 0 10px;
}

.ai-report-content h2:first-child,
.ai-report-content h3:first-child {
  margin-top: 0;
}

.ai-report-content p {
  margin: 0 0 14px;
}

.ai-report-content ul,
.ai-report-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.ai-report-content li {
  margin-bottom: 8px;
}

.ai-report-content code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.07);
  font-family: monospace;
}

.ai-report-content pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 10px;
  background: #111315;
  color: #ffffff;
}

.ai-report-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.ai-report-content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid currentColor;
  background: rgba(0, 0, 0, 0.04);
}

.ai-report-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ai-report-upload-preview {
  display: block;
  width: 100%;
  max-height: 360px;
  margin-top: 12px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.05);
}

.ai-report-section {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.ai-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.ai-section-heading h3 {
  margin: 0;
}

.ai-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ai-detail-grid > div {
  padding: 12px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.04);
}

.ai-detail-grid span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  opacity: 0.7;
}

.ai-warning-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(190, 120, 0, 0.12);
}

.ai-error-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(190, 0, 0, 0.1);
}

@media (max-width: 680px) {
  .ai-report-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 12px;
  }

  .ai-report-header,
  .ai-report-content,
  .ai-report-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ai-report-toolbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ai-detail-grid {
    grid-template-columns: 1fr;
  }
}



/* =====================================================
   AI CHAT
===================================================== */

.ai-conversation-panel{
    background:#fff;
    border-radius:14px;
    border:1px solid #dcdcdc;
    overflow:hidden;
    margin-bottom:24px;
    display:flex;
    flex-direction:column;
}

.ai-conversation-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 22px;
    background:#1f2937;
    color:#fff;
}

.ai-conversation-header>div{
    display:flex;
    align-items:center;
    gap:12px;
}

.ai-online-dot{
    width:12px;
    height:12px;
    border-radius:50%;
    background:#2ecc71;
}

.ai-conversation-header p{
    margin:2px 0 0;
    opacity:.8;
    font-size:.85rem;
}

.ai-conversation-messages{
    min-height:420px;
    max-height:620px;
    overflow-y:auto;
    background:#f6f8fb;
    padding:20px;
}

.ai-empty-conversation{
    text-align:center;
    color:#666;
    padding:70px 20px;
}

.ai-message{
    display:flex;
    margin-bottom:18px;
}

.ai-message.user{
    justify-content:flex-end;
}

.ai-message.assistant{
    justify-content:flex-start;
}

.ai-bubble{
    max-width:75%;
    padding:14px 16px;
    border-radius:16px;
    line-height:1.5;
    white-space:pre-wrap;
    word-break:break-word;
}

.ai-message.user .ai-bubble{
    background:#2563eb;
    color:#fff;
    border-bottom-right-radius:4px;
}

.ai-message.assistant .ai-bubble{
    background:#fff;
    border:1px solid #ddd;
    border-bottom-left-radius:4px;
}

.ai-conversation-composer{
    border-top:1px solid #ddd;
    background:#fff;
    padding:18px;
}

.ai-conversation-composer textarea{
    width:100%;
    resize:vertical;
    min-height:90px;
    padding:12px;
    border:1px solid #ccc;
    border-radius:10px;
    font:inherit;
}

.ai-composer-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-top:14px;
    flex-wrap:wrap;
}

.ai-composer-actions select{
    padding:10px 12px;
}

.ai-request-history{
    margin-top:24px;
}

.ai-request-history summary{
    cursor:pointer;
    font-weight:700;
    padding:12px 0;
}

@media (max-width:768px){

    .ai-bubble{
        max-width:92%;
    }

    .ai-conversation-header{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }

}


/* =====================================================
   AJEROSA AI MESSAGE STATES
===================================================== */

.ai-message-content {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.ai-message.user .ai-message-content {
  align-items: flex-end;
}

.ai-message.assistant .ai-message-content {
  align-items: flex-start;
}

.ai-message-content .ai-bubble {
  max-width: 100%;
}

.ai-message.pending .ai-bubble {
  color: #555f6d;
  background:
    linear-gradient(
      90deg,
      #ffffff,
      #f0f2f5,
      #ffffff
    );
  background-size: 220% 100%;
  animation:
    ajerosa-ai-processing
    1.6s linear infinite;
}

.ai-message.pending .ai-bubble::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 5px;
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 8px;
  background:
    radial-gradient(
      circle,
      currentColor 2px,
      transparent 3px
    )
    0 50% / 6px 6px repeat-x;
  animation:
    ajerosa-ai-dots
    1s linear infinite;
}

.ai-message.error .ai-bubble {
  color: #8f1d1d;
  background: #fff2f2;
  border-color: #efb5b5;
}

.ai-message-actions {
  display: flex;
  gap: 7px;
  margin-top: 7px;
  padding-left: 4px;
}

.ai-message-action {
  appearance: none;
  padding: 5px 9px;
  color: #566170;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
}

.ai-message-action:hover {
  color: #172033;
  background: #ffffff;
  border-color: #d9dee7;
}

.ai-message-action:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@keyframes ajerosa-ai-processing {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

@keyframes ajerosa-ai-dots {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(6px);
  }
}

@media (max-width: 768px) {
  .ai-message-content {
    max-width: 92%;
  }
}

/* ==================================================
   CHATGPT-STYLE AI HISTORY RESPONSES
================================================== */

#aiRequestList table {
  min-width: 1250px;
}

#aiRequestList th:nth-child(6),
#aiRequestList td:nth-child(6) {
  width: 46%;
  min-width: 440px;
}

#aiRequestList td:nth-child(6) {
  padding: 20px;
  line-height: 1.65;
  white-space: normal;
}

#aiRequestList td:nth-child(6) p {
  margin: 0 0 14px;
}

#aiRequestList td:nth-child(6) p:last-child {
  margin-bottom: 0;
}

#aiRequestList td:nth-child(6) h3,
#aiRequestList td:nth-child(6) h4,
#aiRequestList td:nth-child(6) h5 {
  margin: 20px 0 10px;
  line-height: 1.3;
}

#aiRequestList td:nth-child(6) h3:first-child,
#aiRequestList td:nth-child(6) h4:first-child,
#aiRequestList td:nth-child(6) h5:first-child {
  margin-top: 0;
}

#aiRequestList td:nth-child(6) ul,
#aiRequestList td:nth-child(6) ol {
  margin: 10px 0 16px;
  padding-left: 25px;
}

#aiRequestList td:nth-child(6) li {
  margin: 7px 0;
  padding-left: 3px;
}

#aiRequestList td:nth-child(6) strong {
  font-weight: 800;
}

#aiRequestList td:nth-child(6) blockquote {
  margin: 14px 0;
  padding: 12px 16px;
  background: #f4f2eb;
  border-left: 4px solid var(--yellow);
  border-radius: 0 8px 8px 0;
}

#aiRequestList td:nth-child(6) code {
  padding: 2px 6px;
  font-family: monospace;
  background: #ececec;
  border-radius: 5px;
}

#aiRequestList td:nth-child(6) pre {
  padding: 15px;
  overflow-x: auto;
  color: #ffffff;
  background: #171b20;
  border-radius: 10px;
}

#aiRequestList td:nth-child(6) pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

@media (max-width: 800px) {
  #aiRequestList th:nth-child(6),
  #aiRequestList td:nth-child(6) {
    min-width: 340px;
  }
}

/* ===== AI ASSISTANT VOICE AND HISTORY WIDTH FIX ===== */

#aiRequestsPage {
  width: 100%;
  max-width: none;
  min-width: 0;
}

#aiRequestsPage .ai-conversation-panel,
#aiRequestsPage .ai-request-history,
#aiRequestList {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

#aiRequestList.table-wrap {
  overflow-x: visible;
}

#aiRequestList table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

#aiRequestList th,
#aiRequestList td {
  min-width: 0;
  padding: 8px 6px;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#aiRequestList th:first-child,
#aiRequestList td:first-child {
  width: 42px;
  text-align: center;
}

#aiRequestList th:nth-child(2),
#aiRequestList td:nth-child(2) {
  width: 105px;
}

#aiRequestList th:nth-child(3),
#aiRequestList td:nth-child(3) {
  width: 82px;
}

#aiRequestList th:nth-child(4),
#aiRequestList td:nth-child(4) {
  width: 72px;
}

#aiRequestList th:nth-child(5),
#aiRequestList td:nth-child(5) {
  width: 145px;
}

#aiRequestList th:nth-child(6),
#aiRequestList td:nth-child(6) {
  width: 65px;
}

#aiRequestList th:nth-last-child(3),
#aiRequestList td:nth-last-child(3) {
  width: 82px;
}

#aiRequestList th:nth-last-child(2),
#aiRequestList td:nth-last-child(2) {
  width: 78px;
}

#aiRequestList th:last-child,
#aiRequestList td:last-child {
  width: 92px;
}

#aiRequestList td:last-child {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

#aiRequestList td:last-child button {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 7px 6px;
  white-space: normal;
}

#aiRequestList ul,
#aiRequestList ol {
  margin: 6px 0;
  padding-left: 18px;
}

#aiRequestList p {
  margin: 5px 0;
}

.ai-request-history > .card-actions,
.ai-request-history .header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px) {
  #aiRequestList.table-wrap {
    overflow-x: auto;
  }

  #aiRequestList table {
    min-width: 900px;
  }
}


/* ===== FULL WIDTH DASHBOARD PAGES ===== */

main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px;
}

.page,
#auditPage,
#auditList,
#auditPage .table-wrap {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

#auditList table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

#auditList th,
#auditList td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 520px) {
  main {
    padding: 18px;
  }
}

/* ===== LEFT-ALIGNED CONTROLLED DASHBOARD WIDTH ===== */

/*
 * Keep dashboard pages aligned to the left, but stop them
 * stretching across the entire laptop display.
 */
main {
  width: calc(100% - 28px);
  max-width: 1050px;
  margin-left: 0;
  margin-right: auto;
  padding: 28px;
}

/*
 * Individual pages still fill the available dashboard area.
 */
.page,
.page.active,
#aiRequestsPage,
#auditPage {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/*
 * Keep wide tables contained within the dashboard.
 */
#aiRequestList,
#auditList {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 1100px) {
  main {
    width: 100%;
    max-width: none;
    padding: 20px;
  }
}

@media (max-width: 520px) {
  main {
    padding: 14px;
  }
}

/* ===== STANDARD RESPONSIVE DASHBOARD WIDTH ===== */

/*
 * Wide centred layout similar to modern marketplace/admin websites.
 * Overrides the earlier 1050px left-aligned rule.
 */
main {
  width: calc(100% - 48px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 0 40px;
}

/* Every dashboard page uses the available main width. */
.page,
.page.active,
#aiRequestsPage,
#auditPage,
#goodsReceiptsPage {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Keep tables inside their page instead of cutting off buttons. */
.table-wrap,
#aiRequestList,
#auditList,
#goodsReceiptList {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  box-sizing: border-box;
}

/* Use natural column widths for business tables. */
.table-wrap table,
#goodsReceiptList table,
#auditList table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}

/* Goods Receiving has many columns, so preserve readable widths. */
#goodsReceiptList table {
  min-width: 1180px;
}

/* Audit and AI history also remain readable. */
#auditList table {
  min-width: 1050px;
}

#aiRequestList table {
  min-width: 1100px;
}

/* Stop the Action column from being squeezed or cut off. */
#goodsReceiptList th:last-child,
#goodsReceiptList td:last-child,
#auditList th:last-child,
#auditList td:last-child {
  min-width: 120px;
  white-space: normal;
}

/* Medium screens receive smaller outer margins. */
@media (max-width: 1100px) {
  main {
    width: calc(100% - 28px);
    padding: 22px 0 32px;
  }
}

/* Phones and small tablets. */
@media (max-width: 600px) {
  main {
    width: calc(100% - 20px);
    padding: 16px 0 24px;
  }
}


/* ===== FINAL AUDIT TRAIL READABILITY FIX ===== */

/*
 * Keep the Audit Trail readable and prevent compressed,
 * broken or unusually tiny columns.
 */
#auditPage {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#auditList.table-wrap {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  overflow-x: auto;
}

#auditList table {
  width: 100%;
  min-width: 920px;
  max-width: none;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

#auditList th {
  padding: 12px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  text-transform: uppercase;
}

#auditList td {
  padding: 13px 10px;
  font-size: 14px;
  line-height: 1.45;
  vertical-align: top;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Date and time */
#auditList th:nth-child(1),
#auditList td:nth-child(1) {
  width: 165px;
  min-width: 165px;
}

/* User or staff member */
#auditList th:nth-child(2),
#auditList td:nth-child(2) {
  width: 170px;
  min-width: 150px;
}

/* Audit action */
#auditList th:nth-child(3),
#auditList td:nth-child(3) {
  width: 190px;
  min-width: 165px;
}

/* Record or entity */
#auditList th:nth-child(4),
#auditList td:nth-child(4) {
  width: 165px;
  min-width: 145px;
}

/* Details */
#auditList th:nth-child(5),
#auditList td:nth-child(5) {
  min-width: 300px;
}

/*
 * Override the earlier fixed-layout rule that caused
 * Audit Trail text and columns to become crushed.
 */
#auditList table {
  table-layout: auto !important;
}

#auditList th,
#auditList td {
  word-break: normal !important;
}

@media (max-width: 900px) {
  #auditList table {
    min-width: 860px;
  }

  #auditList th,
  #auditList td {
    font-size: 13px;
  }
}

/* ===== FINAL STANDARD DASHBOARD WIDTH ===== */

/*
 * Professional desktop layout:
 * centred like Amazon, CarGurus and other large websites,
 * while remaining responsive on smaller screens.
 */
main {
  width: calc(100% - 40px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 0;
}

.page,
.page.active,
#aiRequestsPage,
#auditPage,
#goodsReceiptsPage {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 1320px) {
  main {
    width: calc(100% - 32px);
  }
}

@media (max-width: 700px) {
  main {
    width: calc(100% - 24px);
    padding: 18px 0;
  }
}

/* =====================================================
   FINAL TABLE ALIGNMENT AND AUDIT TRAIL POLISH
===================================================== */

/*
 * AI Request History must fit inside the normal dashboard
 * without breaking short headings into separate letters.
 */
#aiRequestList.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

#aiRequestList table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

#aiRequestList th,
#aiRequestList td {
  min-width: 0;
  padding: 12px 9px;
  vertical-align: top;
  text-align: left;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

/*
 * Keep headings such as SELECT, LANGUAGE and CONFIDENCE
 * on one straight line.
 */
#aiRequestList th {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-size: 11px;
  line-height: 1.2;
}

/* Select */
#aiRequestList th:nth-child(1),
#aiRequestList td:nth-child(1) {
  width: 4%;
  text-align: center;
}

/* Date */
#aiRequestList th:nth-child(2),
#aiRequestList td:nth-child(2) {
  width: 11%;
  white-space: normal;
}

/* Type */
#aiRequestList th:nth-child(3),
#aiRequestList td:nth-child(3) {
  width: 8%;
}

/* Language */
#aiRequestList th:nth-child(4),
#aiRequestList td:nth-child(4) {
  width: 8%;
}

/* Input */
#aiRequestList th:nth-child(5),
#aiRequestList td:nth-child(5) {
  width: 14%;
}

/* Upload */
#aiRequestList th:nth-child(6),
#aiRequestList td:nth-child(6) {
  width: 6%;
  text-align: center;
}

/* Suggestion */
#aiRequestList th:nth-child(7),
#aiRequestList td:nth-child(7) {
  width: 27%;
}

/* Confidence */
#aiRequestList th:nth-child(8),
#aiRequestList td:nth-child(8) {
  width: 8%;
}

/* Status */
#aiRequestList th:nth-child(9),
#aiRequestList td:nth-child(9) {
  width: 7%;
}

/* Action */
#aiRequestList th:nth-child(10),
#aiRequestList td:nth-child(10) {
  width: 7%;
}

#aiRequestList td:nth-child(8),
#aiRequestList td:nth-child(9) {
  overflow-wrap: normal;
  word-break: normal;
}

#aiRequestList td:last-child {
  display: table-cell;
}

#aiRequestList td:last-child button {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 7px;
  padding: 8px 5px;
}

/*
 * Audit Trail must remain inside the dashboard.
 * Long JSON details wrap instead of forcing horizontal scroll.
 */
#auditList.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

#auditList table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

#auditList th,
#auditList td {
  min-width: 0;
  padding: 13px 11px;
  vertical-align: top;
  text-align: left;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#auditList th {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-size: 11px;
}

#auditList th:nth-child(1),
#auditList td:nth-child(1) {
  width: 12%;
}

#auditList th:nth-child(2),
#auditList td:nth-child(2) {
  width: 15%;
}

#auditList th:nth-child(3),
#auditList td:nth-child(3) {
  width: 22%;
}

#auditList th:nth-child(4),
#auditList td:nth-child(4) {
  width: 11%;
}

#auditList th:nth-child(5),
#auditList td:nth-child(5) {
  width: 40%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

/*
 * On smaller screens, retain wrapping rather than creating
 * a compulsory sideways-scrolling table.
 */
@media (max-width: 900px) {
  #aiRequestList table,
  #auditList table {
    min-width: 0;
  }

  #aiRequestList th,
  #aiRequestList td,
  #auditList th,
  #auditList td {
    padding: 9px 6px;
    font-size: 11px;
  }
}
.link-button {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: #d7b600;
  text-underline-offset: 4px;
}

.compact-button {
  min-height: 34px;
  padding: 7px 10px;
  white-space: nowrap;
}

.bulk-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}

.bulk-select-label {
  align-items: center;
  display: inline-flex;
  gap: .5rem;
  margin: 0;
}

.bulk-select-label input,
.part-select {
  height: 18px;
  width: 18px;
}

.bulk-actions button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.record-toolbar,
.pagination-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 0 0 1rem;
}

.record-toolbar input,
.record-toolbar select {
  background: #fff;
  border: 1px solid #cfd2d5;
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 10px;
}

.record-toolbar input[type="search"] {
  min-width: min(260px, 100%);
}

.pagination-controls {
  justify-content: flex-end;
  margin-top: 1rem;
}

.pagination-controls .muted {
  min-width: 150px;
  text-align: center;
}

.timezone-note {
  font-size: .82rem;
  margin: -.35rem 0 1rem;
}

.selection-column {
  text-align: center;
  width: 42px;
}

.selection-column input {
  height: 18px;
  width: 18px;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.compact-dialog {
  width: min(520px, 94vw);
}

.compact-dialog label {
  display: block;
  font-weight: 700;
  margin: .8rem 0;
}

.compact-dialog input:not([type="radio"]) {
  background: #fff;
  border: 1px solid #cfd2d5;
  border-radius: 8px;
  display: block;
  margin-top: .35rem;
  padding: 10px;
  width: 100%;
}

.choice-card {
  align-items: flex-start;
  border: 1px solid #d9dde5;
  border-radius: 10px;
  cursor: pointer;
  display: flex !important;
  gap: .7rem;
  padding: .8rem;
}

.choice-card input {
  margin-top: .2rem;
}

.choice-card span,
.choice-card small {
  display: block;
}

.choice-card small {
  color: var(--muted);
  font-weight: 400;
  margin-top: .2rem;
}

.approval-summary-panel tfoot th {
  border-top: 2px solid rgba(127, 127, 127, .35);
}

@media (max-width: 700px) {
  .record-toolbar > * {
    flex: 1 1 100%;
    width: 100%;
  }

  .pagination-controls {
    justify-content: center;
  }
}

.history-summary {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 .75rem;
}

.movement-history-table th,
.movement-history-table td {
  vertical-align: top;
}

.ai-proposal {
  background: rgba(215, 182, 0, .07);
  border: 1px solid rgba(215, 182, 0, .35);
  border-radius: 10px;
  padding: .85rem;
}

.ai-proposal.compact {
  min-width: 240px;
}

.ai-proposal-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: space-between;
}

.ai-proposal-identity {
  color: var(--muted);
  font-size: .78rem;
  margin-top: .5rem;
  overflow-wrap: anywhere;
}

.ai-proposal-actions {
  margin: .75rem 0 0;
  padding-left: 1.35rem;
}

.ai-proposal-actions li + li {
  border-top: 1px solid rgba(127, 127, 127, .22);
  margin-top: .65rem;
  padding-top: .65rem;
}

.ai-proposal-actions span,
.ai-proposal-actions small {
  display: block;
  margin-top: .25rem;
}

.ai-proposal-actions small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.ai-proposal-warning {
  background: rgba(222, 140, 0, .12);
  border-left: 3px solid #de8c00;
  margin: .75rem 0 0;
  padding: .6rem .7rem;
}

.ai-proposal-explanation {
  margin-top: .75rem;
}

.ai-proposal-explanation summary {
  cursor: pointer;
  font-weight: 700;
}

/* Final session, recovery and bulk-record controls. */
.impersonation-banner {
  align-items: center;
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 28px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.auth-link {
  color: #32363c;
  margin-top: 14px;
  width: auto !important;
}

.record-select {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: .85rem;
  font-weight: 700;
  gap: .45rem;
  margin-bottom: .7rem;
}

.record-select input {
  height: 18px;
  width: 18px;
}

.compact-stats {
  margin: 1rem 0;
}

.compact-stats article {
  padding: 14px;
}

.compact-stats strong {
  font-size: 1.35rem;
}

.nested-panel {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding: 22px 4px 4px;
}

.password-recovery-note {
  background: #f6f4e9;
  border-left: 4px solid var(--yellow);
  margin: 0;
  padding: 12px;
}

.recovery-code,
.recovery-code-list {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  letter-spacing: .04em;
}

.date-time-cell {
  white-space: nowrap;
}

.work-history-table {
  min-width: 940px;
}

.work-history-table .date-time-cell small {
  display: inline-block;
  margin-top: 3px;
}

/* Paginate the Audit Trail vertically and let genuinely wide rows scroll
 * horizontally. Keeping the timestamp on one line removes the old mixed
 * one-line/two-line date presentation. */
#auditList.table-wrap {
  overflow-x: auto;
}

#auditList table {
  max-width: none;
  min-width: 1080px;
  table-layout: auto;
}

#auditList th:nth-child(1),
#auditList td:nth-child(1) {
  min-width: 225px;
  white-space: nowrap;
  width: auto;
}

#auditList th:nth-child(2),
#auditList td:nth-child(2),
#auditList th:nth-child(3),
#auditList td:nth-child(3),
#auditList th:nth-child(4),
#auditList td:nth-child(4) {
  width: auto;
}

#auditList th:nth-child(5),
#auditList td:nth-child(5) {
  min-width: 380px;
  width: auto;
}

@media (max-width: 700px) {
  .impersonation-banner {
    align-items: stretch;
    padding: 10px 16px;
  }

  .impersonation-banner button {
    width: 100%;
  }
}


/* R4.1.3: Fleet/Operator management controls occupy one full-width horizontal toolbar row. */
#fleetList > .bulk-actions,
#fleetList > .pagination-controls,
#operatorList > .bulk-actions,
#operatorList > .pagination-controls {
  grid-column: 1 / -1;
  width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: flex-start;
}
#fleetList > .bulk-actions > *,
#fleetList > .pagination-controls > *,
#operatorList > .bulk-actions > *,
#operatorList > .pagination-controls > * {
  flex: 0 0 auto;
}

.business-context-banner{padding:10px 14px;margin:0 0 14px;border:1px solid var(--border,#d7dce2);border-radius:10px;background:rgba(127,127,127,.06)}
.batch-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;align-items:end;border-top:1px solid rgba(127,127,127,.2);padding:10px 0}.batch-row label{font-size:.82rem}.batch-row input{width:100%}
.multi-select-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.45rem;margin-top:.5rem;max-height:220px;overflow:auto;padding:.65rem;border:1px solid var(--border,#d9dee7);border-radius:10px}.multi-option{display:flex;align-items:center;gap:.45rem;padding:.35rem .45rem}

/* R4.3.3+ linked overview and billing */
.clickable-stat{cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}.clickable-stat:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.08)}.service-due-stat strong{color:#b42318}.maintenance-alert-row{display:block;width:100%;text-align:left;margin:.45rem 0;padding:.75rem;border:1px solid #f0b4ae;background:#fff7f6;border-radius:10px}.billing-document{max-width:760px;margin:auto;background:white;border:1px solid #bbb;border-radius:14px;padding:28px}.billing-head,.billing-meta{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.billing-logo{width:95px;display:block;margin-bottom:6px}.billing-title{text-align:center;font-size:2.2rem;margin:30px 0;border-bottom:2px solid #e3ad00;padding-bottom:10px}.billing-customer{line-height:1.45}.billing-document table{width:100%;border-collapse:collapse;margin-top:20px}.billing-document th{background:#111;color:#fff}.billing-document td,.billing-document th{padding:9px;border:1px solid #ddd}.billing-total{display:flex;justify-content:space-between;background:#ffe08a;padding:12px;margin-top:14px;font-size:1.1rem}.billing-thanks{text-align:center;margin:45px 0 10px;font-weight:700}.multi-select-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.45rem}.multi-option{display:flex;gap:.4rem;align-items:center}

/* R4.3.12 neutral refresh bootstrap: never flash login/owner-registration artwork. */
.boot-shell{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#15181c;color:#f4f4f4;z-index:9999;min-height:100vh}
.boot-shell[hidden]{display:none!important}.boot-card{width:min(360px,82vw);text-align:center;padding:28px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:#1d2126;box-shadow:0 18px 70px rgba(0,0,0,.3)}
.boot-card h1{font-size:1.05rem;margin:14px 0 6px}.boot-card p{margin:0;color:#bfc5cc;font-size:.9rem}.boot-spinner{width:34px;height:34px;margin:0 auto;border-radius:50%;border:3px solid rgba(255,255,255,.18);border-top-color:#e7c719;animation:ajerosaBootSpin .8s linear infinite}@keyframes ajerosaBootSpin{to{transform:rotate(360deg)}}

/* AJEROSA_R441_GPS_MODULE */
.gps-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin:0 0 1rem}.gps-tab{border:1px solid var(--border,#d9dde3);background:#fff;border-radius:999px;padding:.55rem .85rem}.gps-tab.active{font-weight:700;box-shadow:inset 0 -2px 0 currentColor}.gps-map{height:440px;min-height:320px;border-radius:16px;overflow:hidden;background:#eef1f4}.gps-live-layout{display:grid;grid-template-columns:minmax(260px,340px) 1fr;gap:1rem}.gps-device-panel{max-height:620px;overflow:auto}.gps-device-row{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;padding:.8rem;border:0;border-bottom:1px solid var(--border,#e3e5e8);background:transparent}.gps-device-row span:first-child{display:flex;flex-direction:column}.gps-device-row small{color:var(--muted,#6b7280)}.gps-detail-panel{margin-top:1rem}.gps-admin-grid{display:grid;grid-template-columns:1fr;gap:1rem}.gps-draft{margin-bottom:1rem}@media(max-width:850px){.gps-live-layout{grid-template-columns:1fr}.gps-map{height:360px}}
