@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/Nunito-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/Nunito-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/Nunito-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  src: url("../fonts/Nunito-Bold.ttf") format("truetype");
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(242, 83, 82, .35);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background: #f7f2f6;
  color: #22112d;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .94rem;
  margin: 0;
}

.backoffice-layout {
  align-items: stretch;
  background: linear-gradient(to right, #1c0a25 0, #1c0a25 250px, #f7f2f6 250px, #f7f2f6 100%);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.side-menu {
  background:
    linear-gradient(180deg, rgba(168, 0, 24, .42), rgba(28, 10, 37, 0) 240px),
    #1c0a25;
  border-right: 1px solid rgba(255, 255, 255, .13);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 16px;
  position: sticky;
  top: 0;
  min-height: 100vh;
  align-self: stretch;
}

.side-brand {
  align-items: center;
  display: flex;
  min-height: 68px;
  padding: 4px 2px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-nav a {
  border-radius: 6px;
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
  padding: 8px 10px;
  text-decoration: none;
}

.side-nav a:hover {
  background: rgba(255, 255, 255, .13);
  color: #fff;
}

.side-nav a.active {
  background: #eef5fb;
  border: 1px solid rgba(255, 255, 255, .86);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .16);
  color: #004c97;
}

.side-user {
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}

.side-user span {
  color: rgba(255, 255, 255, .72);
  font-size: .92rem;
}

.side-user a {
  color: #ffc35b;
  font-weight: 700;
  text-decoration: none;
}

.content-shell {
  min-width: 0;
  padding: 24px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.app-shell {
  padding-top: 28px;
}

.brand-logo-link {
  align-items: center;
  display: flex;
  min-height: 44px;
  padding-bottom: 6px;
  padding-top: 6px;
}

.brand-logo {
  display: block;
  height: auto;
  object-fit: contain;
  max-width: 142px;
  width: auto;
}

.toolbar {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.volta-dashboard-bar {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(28, 10, 37, .96), rgba(59, 18, 62, .94)),
    #1c0a25;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(36, 16, 45, .14);
  min-height: 92px;
  padding: 16px 20px;
}

.volta-dashboard-brand {
  align-items: center;
  display: flex;
  gap: 20px;
}

.volta-dashboard-brand img {
  border-radius: 10px;
  display: block;
  height: 62px;
  object-fit: cover;
  width: 145px;
}

.volta-dashboard-bar h1 {
  color: #fff;
}

.volta-dashboard-bar p {
  color: rgba(255, 255, 255, .72);
}

.toolbar h1 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}

.toolbar p {
  color: #657282;
  margin: 6px 0 0;
}

.filters {
  display: flex;
  gap: 10px;
}

.filters input,
.filters select {
  border: 1px solid #d9cedd;
  border-radius: 6px;
  min-height: 36px;
  padding: 7px 9px;
}

.filters button {
  background: linear-gradient(100deg, #f25352, #ff7845 58%, #f6ad45);
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  min-height: 36px;
  padding: 7px 14px;
}

.secondary-link {
  align-items: center;
  background: #fff;
  border: 1px solid #e3d9e4;
  border-radius: 6px;
  color: #34203d;
  display: inline-flex;
  font-weight: 600;
  min-height: 36px;
  padding: 7px 12px;
  text-decoration: none;
}

.provision-form,
.user-form,
.sms-form,
.status-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1.4fr 2fr 1fr auto auto;
  padding: 16px;
}

.user-form {
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr auto auto;
}

.sms-form {
  grid-template-columns: 1.5fr 1.2fr 1fr auto;
}

.status-form {
  grid-template-columns: 2fr 1.5fr 1.2fr auto;
}

.movement-filters {
  flex-wrap: wrap;
  justify-content: end;
}

.provision-form label,
.user-form label,
.sms-form label,
.status-form label,
.modal-form label {
  display: grid;
  gap: 5px;
}

.provision-form span,
.user-form span,
.sms-form span,
.status-form span,
.modal-form span {
  color: #657282;
  font-size: .82rem;
  font-weight: 600;
}

.provision-form input:not([type="checkbox"]),
.user-form input:not([type="checkbox"]),
.user-form select,
.sms-form input,
.sms-form select,
.sms-form textarea,
.status-form input,
.chart-filter-form select,
.modal-form select,
.modal-form input {
  border: 1px solid #d9cedd;
  border-radius: 6px;
  min-height: 36px;
  padding: 7px 9px;
}

.sms-form textarea {
  min-height: 92px;
  resize: vertical;
}

.provision-form button,
.user-form button,
.sms-form button,
.status-form button,
.primary-action {
  background: linear-gradient(100deg, #f25352, #ff7845 58%, #f6ad45);
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  min-height: 36px;
  padding: 7px 14px;
}

.user-form button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 142px;
}

.sms-message {
  min-width: 220px;
}

.sms-message-full {
  grid-column: 1 / -1;
}

.inline-form {
  display: inline;
  margin: 0;
}

.token-code {
  background: #f2f4f7;
  border: 1px solid #e4e7ec;
  border-radius: 5px;
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  padding: 4px 6px;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.token-copy-cell {
  align-items: center;
  display: flex;
  gap: 6px;
  max-width: 320px;
}

.token-copy-cell .token-code {
  flex: 1;
  min-width: 0;
}

.copy-token-button {
  align-items: center;
  background: #fff3ec;
  border: 1px solid #ffc9ab;
  border-radius: 6px;
  color: #a80018;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 30px;
}

.copy-token-button svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.copy-token-button.copied {
  background: #fff8ed;
  border-color: #ffd79a;
  color: #a80018;
}

.notice {
  background: #fff8ed;
  border: 1px solid #ffd79a;
  border-radius: 8px;
  color: #7a4510;
  font-weight: 600;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.narrow-panel {
  max-width: 560px;
}

.password-panel .modal-form {
  padding: 18px;
}

.password-panel .primary-action {
  margin-top: 2px;
}

.field-validation-valid.form-error {
  display: none;
}

.status-result {
  background: #101828;
  color: #f2f4f7;
  margin: 0;
  overflow-x: auto;
  padding: 14px 16px;
  white-space: pre-wrap;
}

.doc-panel {
  background: #fff;
  border: 1px solid #e3d9e4;
  border-radius: 8px;
  margin-bottom: 24px;
  padding: 26px;
}

.doc-content {
  max-width: 980px;
}

.doc-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 26px 0 10px;
}

.doc-content h2:first-child {
  margin-top: 0;
}

.doc-content pre {
  background: #101828;
  border-radius: 8px;
  color: #f2f4f7;
  overflow-x: auto;
  padding: 14px 16px;
}

.doc-content code {
  font-size: .9rem;
}

.doc-content li {
  margin-bottom: 6px;
}

.secondary-action {
  background: #fff;
  border: 1px solid #d9cedd;
  border-radius: 6px;
  color: #34203d;
  font-weight: 600;
  min-height: 36px;
  padding: 7px 14px;
}

.pdf-action {
  background: #dc1f26;
  border: 1px solid #dc1f26;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  min-height: 36px;
  padding: 7px 14px;
}

.danger-action {
  background: #fff1f0;
  border: 1px solid #ffa39e;
  border-radius: 6px;
  color: #a8071a;
  font-weight: 700;
  min-height: 32px;
  padding: 5px 10px;
}

.check-row {
  align-items: center;
  display: flex !important;
  gap: 8px;
  min-height: 36px;
}

.nav-user {
  align-items: center;
  display: flex;
  gap: 12px;
  font-size: .92rem;
}

.nav-user span {
  color: #52606d;
}

.nav-user a {
  color: #a80018;
  font-weight: 600;
  text-decoration: none;
}

.login-shell {
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
}

.login-panel {
  background: #fff;
  border: 1px solid #e3d9e4;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.login-panel h1 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0;
}

.login-logo {
  display: block;
  height: auto;
  margin: 0 auto 2px;
  max-width: 220px;
  width: 70%;
}

.login-panel p {
  color: #657282;
  margin: 0;
}

.login-panel label {
  display: grid;
  gap: 5px;
}

.login-panel span {
  color: #657282;
  font-size: .86rem;
  font-weight: 600;
}

.login-panel input {
  border: 1px solid #d9cedd;
  border-radius: 6px;
  min-height: 38px;
  padding: 7px 9px;
}

.login-panel button {
  background: linear-gradient(100deg, #f25352, #ff7845 58%, #f6ad45);
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  min-height: 38px;
}

.login-secondary-link {
  color: #a80018;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.form-error {
  background: #fff1f0;
  border: 1px solid #ffccc7;
  border-radius: 6px;
  color: #a8071a !important;
  padding: 8px 10px;
}

.metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 24px;
}

.metrics article,
.panel {
  background: #fff;
  border: 1px solid #e3d9e4;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(36, 16, 45, .05);
}

.metrics article {
  padding: 14px;
  border-top: 3px solid #f25352;
}

.metrics span {
  color: #745f7b;
  display: block;
  font-size: .86rem;
}

.metrics strong {
  display: block;
  font-size: 1.2rem;
  margin-top: 4px;
}

.metrics .metric-text-value {
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.metrics.company-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.chart-panel {
  overflow: visible;
}

.chart-filter-form {
  align-items: end;
  display: flex;
  gap: 10px;
}

.chart-filter-form label {
  display: grid;
  gap: 4px;
  margin: 0;
}

.chart-filter-form span {
  color: #657282;
  font-size: .82rem;
  font-weight: 600;
}

.chart-filter-form button {
  background: linear-gradient(100deg, #f25352, #ff7845 58%, #f6ad45);
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  min-height: 36px;
  padding: 7px 14px;
}

.chart-wrap {
  padding: 16px;
}

.panel {
  margin-bottom: 22px;
  overflow: hidden;
}

.section-title {
  align-items: center;
  border-bottom: 1px solid #eee5ef;
  display: flex;
  min-height: 44px;
  padding: 0 14px;
}

.panel-title-actions {
  justify-content: space-between;
  gap: 16px;
}

.section-title h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.movement-title-stack {
  display: grid;
  gap: 3px;
}

.movement-legend {
  align-items: center;
  color: #9f1239;
  display: flex;
  font-size: .8rem;
  font-weight: 700;
  gap: 6px;
}

.cancelled-swatch {
  background: #dc2626;
  border-radius: 2px;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.cancelled-movement-row td {
  color: #b00020;
}

.cancelled-movement-row .icon-action {
  color: #b00020;
}

.detail-cancellation-block {
  color: #b00020;
}

.detail-cancellation-block small {
  color: #9f1239;
  font-size: .82rem;
}

.page-size-form label {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0;
}

.page-size-form span {
  color: #657282;
  font-size: .82rem;
  font-weight: 600;
}

.page-size-form select {
  border: 1px solid #d9cedd;
  border-radius: 6px;
  min-height: 34px;
  padding: 5px 8px;
}

.sms-log-search-form {
  align-items: center;
  display: flex;
  gap: 8px;
}

.sms-log-search-form input {
  border: 1px solid #d9cedd;
  border-radius: 6px;
  min-height: 34px;
  padding: 5px 8px;
  width: 150px;
}

.sms-log-search-form .secondary-link {
  min-height: 34px;
  padding: 5px 10px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid #edf1f5;
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: #725d7a;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sms-log-table {
  min-width: 0;
  table-layout: fixed;
}

.sms-log-wrap {
  overflow-x: visible;
}

.sms-log-date-col {
  width: 9%;
}

.sms-log-store-col {
  width: 12%;
}

.sms-log-phone-col {
  width: 7%;
}

.sms-log-result-col,
.sms-log-status-col {
  width: 6%;
}

.sms-log-id-col {
  width: 18%;
}

.sms-log-action-col {
  width: 7%;
}

.sms-log-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.sms-log-table .sms-log-message {
  font-size: .82rem;
  line-height: 1.35;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.sms-log-table .actions-cell {
  vertical-align: top;
}

.num {
  text-align: right;
}

.pagination-bar {
  align-items: center;
  background: #fffaf6;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 8px 14px;
}

.pagination-bar span {
  color: #657282;
  font-size: .9rem;
}

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

.export-bar {
  background: #fffaf6;
  border-top: 1px solid #eee5ef;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 14px;
}

.pagination-actions a,
.disabled-page {
  border: 1px solid #d9cedd;
  border-radius: 6px;
  color: #a80018;
  font-weight: 700;
  min-width: 88px;
  padding: 6px 10px;
  text-align: center;
  text-decoration: none;
}

.disabled-page {
  color: #98a2b3;
}

.actions-cell {
  text-align: right;
  white-space: nowrap;
}

.icon-action {
  background: #fff3ec;
  border: 1px solid #ffc9ab;
  border-radius: 6px;
  color: #a80018;
  font-weight: 700;
  min-height: 32px;
  padding: 5px 10px;
}

.link-action {
  display: inline-flex;
  text-decoration: none;
}

.form-hint {
  color: #657282;
  font-size: .9rem;
  margin: 0;
}

.detail-list {
  display: grid;
  gap: 12px;
}

.detail-list div {
  border-bottom: 1px solid #edf1f5;
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
}

.detail-list span {
  color: #657282;
  font-size: .82rem;
  font-weight: 700;
}

.detail-list strong {
  color: #1f2933;
  font-size: .98rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-form {
  display: grid;
  gap: 14px;
}

@media (max-width: 900px) {
  .backoffice-layout {
    grid-template-columns: 1fr;
  }

  .side-menu {
    height: auto;
    position: static;
  }

  .content-shell {
    padding: 18px;
  }

  .toolbar,
  .filters,
  .chart-filter-form,
  .provision-form,
  .user-form,
  .sms-form,
  .status-form {
    align-items: stretch;
  }

  .toolbar,
  .filters,
  .chart-filter-form {
    flex-direction: column;
  }

  .panel-title-actions,
  .pagination-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .provision-form,
  .user-form,
  .sms-form,
  .status-form {
    grid-template-columns: 1fr;
  }

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