/**************************************************************/
/*                   ICONS
/**************************************************************/
#admin-menu a.sereny {
  background-image: url(../images/sereny.png);
  background-repeat: no-repeat;
  padding-left: 20px;
  background-size: 16px 16px;
}

#sereny_settings_invoice_days_before {
  max-width: 122px;
}

#menu-nfse {
  display: none;
  position: absolute;
}

#menu-nfse.visible {
  display: block;
}

#menu-nfse ul {
  z-index: 39;
  border: 1px solid #ccc;
  width: 100px;
  padding-left: 0;
}

#menu-nfse li {
  background: white;
  list-style: none;
  padding: 2px 8px 2px 10px;
  border-radius: 2px;
}

.icon-charge-add {
  background-image: url(../images/charge_add.png);
}

.icon-nfse {
  background-image: url(../images/world_go.png);
}

.icon-nfse.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: none;
}

table.charges .total {
  text-align: right;
}

table.charges td.total {
  padding-right: 4px;
}

table.list.charges tr.overdue,
table.list.charges tr.overdue:hover,
table.list.charges tr.overdue a,
table.list.charges tr.overdue a:hover {
  color: #900;
}

table.list.charge_history td {
  text-align: left;
}

table.list.charge_history td:first-child {
  width: 140px;
}

#user_repasse_account {
  width: 90%;
}

#charge_product_id {
  width: 60% !important;
}

#charge_message {
  width: 60% !important;
}

#cancellation_number {
  width: 200px;
}

.wiki #charge_message {
  width: 100% !important;
}

.charge_status_new {
  background-color: #dadd34 !important;
}

.charge_status_paid {
  background-color: #339966 !important;
}

.charge_status_canceled {
  background-color: #d3341f !important;
}

table.nfse_cancellations {
 width: 100%;
}

table.nfse_cancellations h3 {
  padding: 0;
  margin: 0;
}

table.nfse_cancellations td {
  vertical-align: middle;
}

table.nfse_cancellations td:last-child {
  text-align: right;
}

table.nfse_cancellations td:last-child > a {
  padding-top: 2px;
  padding-bottom: 2px;
}

table.deals.index.total {
  width: 100%;
}

.deals .total .title,
.deals .total :not(.deals-sum:last-child) {
  text-align: left;
}

.deals .total .deals-sum .query-totals {
  text-align: right;
  text-align: right;
  margin-top: 0;
}

/**************************************************************/
/*                   CHECKOUT MODAL
/**************************************************************/
:root {
  --checkout-color-primary: #999ffd;
  --checkout-color-primary-light: #dedeff;
  --checkout-color-primary-gray: #f3e5f5;
  --checkout-color-success: #4CAF50;
  --checkout-color-danger: #e53935;
  --checkout-color-warning: #E65100;
  --checkout-color-warning-light: #FFF3E0;
  --checkout-color-link: #1976D2;
  --checkout-color-gray-50: #F8FAFC;
  --checkout-color-gray-100: #F1F5F9;
  --checkout-color-gray-200: #E2E8F0;
  --checkout-color-gray-600: #475569;
  --checkout-color-gray-700: #334155;
  --checkout-color-gray-900: #0F172A;
}

.checkout {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.checkout-button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  color: white;
  background-color: var(--checkout-color-primary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.checkout-header {
  padding: 20px;
  background-color: var(--checkout-color-primary);
  color: white;
}

.checkout-header-container {
  display: flex;
  align-items: center;
}

.checkout-header-container > img {
  width: 48px;
  height: 48px;
  margin-right: 10px;
}

.checkout-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 28px;
  text-align: center;
  color: var(--checkout-color-gray-700);
}

.checkout-error-icon {
  font-size: 52px;
  color: var(--checkout-color-danger);
}

.checkout-modal {
  position: fixed;
  inset: 0px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 1;
  visibility: visible;
  transition: 0.3s;
}

.checkout-content {
  padding: 0 1.5rem 1rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1rem 0;
}

.checkout-modal-header {
  position: sticky;
  top: 0;
  background-color: var(--checkout-color-primary);
  color: white;
  padding: 0 20px;
  border-bottom: 1px solid var(--checkout-color-primary-gray);
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.checkout-modal-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.checkout-modal-header-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--checkout-color-gray-900);
  margin: 0;
}

.checkout-message {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 28px;
  color: var(--checkout-color-gray-700);
}

.checkout-message i {
  font-size: 72px;
}

.checkout-message h1 {
  padding: 10px;
}

.checkout-message p {
  padding: 4px;
  color: var(--checkout-color-gray-900);
}

#checkout-success i {
  color: var(--checkout-color-success);
}

#checkout-failed i {
  color: var(--checkout-color-danger);
}

.checkout-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.checkout-qrcode-image {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid var(--checkout-color-gray-200);
  margin-bottom: 1rem;
}

.checkout-qrcode-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--checkout-color-warning-light);
  color: var(--checkout-color-warning);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.checkout-qrcode-instruction {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.5rem;
  color: var(--checkout-color-primary);
}

.checkout-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.checkout-info-status {
  text-align: center;
  margin-bottom: 1rem;
  background: rgba(255, 107, 0, 0.05);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 8px;
  padding: 1rem;
}

.checkout-info-status-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.checkout-info-status-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--checkout-color-primary) 0%, var(--checkout-color-primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-info-status-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--checkout-color-gray-700);
  margin: 0;
}

.checkout-info-status-icon i {
  color: white;
  font-size: 16px;
}

.checkout-info-status-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--checkout-color-primary);
  margin-bottom: 0.75rem;
}

.checkout-info-details {
  background: var(--checkout-color-gray-50);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--checkout-color-gray-200);
  text-align: left;
}

.checkout-info-details-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--checkout-color-gray-700);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.checkout-info-details-title i {
  margin-right: 0.5rem;
  font-size: 0.9rem;
  color: var(--checkout-color-primary);
}

.checkout-info-details-product {
  margin-bottom: 0.6rem;
}

.checkout-info-details-product-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--checkout-color-gray-900);
  margin-bottom: 0.5rem;
}
.checkout-info-details-product-value {
  font-size: 0.75rem;
  color: var(--checkout-color-gray-600);
  margin-bottom: 0.5rem;
}

.checkout-info-pix {
  flex: 1;
}

.checkout-info-pix-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--checkout-color-gray-700);
  font-size: 0.8rem;
}

.checkout-info-pix-label i {
  color: var(--checkout-color-primary);
}

.checkout-info-pix-textarea {
  width: 100%;
  height: 60px;
  padding: 0.5rem;
  border: 2px solid var(--checkout-color-gray-200);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  resize: none;
  background: var(--checkout-color-gray-50);
  color: var(--checkout-color-gray-700);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.checkout-info-pix-copy {
  width: 100%;
  padding: 0.75rem;
  border: none;
  color: white;
  background-color: var(--checkout-color-primary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.checkout-box {
  background: white;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.checkout-header .checkout-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkout-header .checkout-close {
  background: var(--);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-info-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  margin-top: 0.5rem;
  color: var(--checkout-color-gray-700);
  font-size: 0.65rem;
  font-weight: 400;
}

.checkout-info-security i {
  color: var(--checkout-color-success);
}

.checkout-info-security-link {
  color: var(--checkout-color-link);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 400;
  margin-top: 0.1rem;
}

.checkout-footer {
  background: var(--checkout-color-primary-gray);
  color: var(--checkout-color-gray-700);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.75rem;
  border-top: 1px solid var(--checkout-color-gray-200);
  margin-top: auto;
}

.checkout-footer-container a {
  color: var(--checkout-color-link);
  text-decoration: none;
  font-weight: 600;
}

.checkout-footer-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    text-align: center;
  }
  .checkout-qrcode-image {
    width: 160px !important;
    height: 160px !important;
  }
  .checkout-info-status-title {
    font-size: 0.7rem !important;
  }
  .checkout-info-status-value {
    font-size: 1.1rem !important;
  }
  .checkout-info-status-icon {
    width: 22px !important;
    height: 22px !important;
  }
  .checkout-info-details {
    padding: 0.5rem !important;
    font-size: 0.65rem !important;
  }
  .checkout-info-details > div {
    font-size: 0.6rem !important;
  }
  .checkout-info-details > div > div {
    font-size: 0.55rem !important;
  }
}
@media (min-width: 769px) {
  .checkout-box {
    max-width: 900px !important;
  }
}



