:root {
    --degas-primary: #0D36FF;
    --primary-rgb: rgb(95, 99, 242);
}

.strikingDash-top-menu .subMenu {
    min-width: 250px;
    width: max-content;
}

form :required {
    border: 1px solid var(--primary) !important;
}
form :required.is-invalid {
    border: 1px solid var(--danger) !important;
}

input#data-ranger:hover {
    cursor: pointer;
}

.btn-dropdown-checkbox {
    margin: 10px !important;
    width: -webkit-fill-available !important;
    height: auto !important;
}

.btn-dropdown-checkbox:focus,
.btn-dropdown-checkbox:active,
.btn-filter:focus,
.btn-filter:active {
    background: #3c41ef !important;
}

.btn-filter {
    height: auto !important;
}

.dropdown .btn-group button.btn-time-filter {
    border-radius: 5px 5px 5px 5px !important;
}

button#btn-time-filter.btn-white:focus {
    background-color: #fff;
}

button#btn-time-filter.btn-primary:focus {
    background-color: var(--primary);
}

.ui-timepicker-wrapper {
    max-height: 400px !important;
}

.dropdown-checkbox {
    padding-top: 10px !important;
}

.dropdown-checkbox.dropdown-item {
    padding: 10px !important;
}

.dropdown-checkbox .dropdown-item input,
.dropdown-checkbox .dropdown-item label,
.dropdown-checkbox .dropdown-item span {
    cursor: pointer !important;
}

.transactions .dropdown .dropdown-btn {
    height: 2.625rem !important;
    padding: 10px 12px !important;
    line-height: 1.5;
    border: 1px solid #f1f2f6;
    border-radius: 5px;
}

.transactions .dropdown .dropdown-btn span {
    margin-right: 0 !important;
}

.transactions .orderDatatable_actions {
    min-width: fit-content;
}

.transactions table.table-rounded tbody tr td {
    padding: 5px 10px;
}

.transacoes-cliente table tbody tr td {
    padding: 3px 20px;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .desktop-only {
        display: none;
    }
}

#signIn-left {
    background-color: transparent !important;
}

#signIn-left::before {
    content: "";
    background-image: url('../images/login.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0 70px 70px 0;
}

.atbd-button-list a {
    margin: 5px 6px;
}

.btn-table {
    line-height: 1;
    padding-top: .65rem;
    padding-bottom: .65rem;
}

/* acompanha btn e btn-sm do tema */
.disabled-simulate {
    background-color: #f4f5f7 !important;
}

.fornecedor-logo-img {
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 150px;
}

.hidden {
    display: none !important;
}

.pt_Quantity .pt_QuantityNav {
    display: none;
}

#cliente.add-product__body {
    padding: 0;
}

/* Esconde 'step' em inputs do tipo number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

input[type=number] {
    -moz-appearance: textfield !important;
}

/* ------------- */

#tap-preview {
    width: 200px;
    max-width: 200px;
    text-overflow: clip;
    white-space: nowrap;
    overflow: hidden;
}

#tap-preview,
#tap-preview h3,
#tap-preview h4,
#tap-preview span {
    font-family: "Formula Condensed", Helvetica, sans-serif !important;
    line-height: 1;
    font-weight: 500;
}

#tap-preview #beverage-name {
    font-size: 33px !important;
    line-height: 1.5;
}

#tap-preview #beverage-brand,
#tap-preview #beverage-style {
    font-size: 22.5px !important;
}

#tap-preview #beverage-price {
    font-size: 30px !important;
}

#tap-preview .fs-subheading {
    font-size: 12px !important;
}

#tap-preview .beverage-details {
    font-size: 20px !important;
    line-height: 0.6;
}

#tap-preview .progress {
    background-color: #dedede;
}

#tap-preview .spin-embadded.spin-active {
    border-color: #e7e8fd06;
    opacity: .4;
}

#tap-preview h3::after,
h4::after {
    /* Faz com que a div não suma se campo estiver vazio  */
    content: '.';
    visibility: hidden;
}

.text-right {
    text-align: end;
}

.text-left {
    text-align: left;
}

.dot-centered {
    text-align: center;
    text-align: -webkit-center;
}

#torneiras .atbd-badge-text .badge-dot {
    margin-right: 2px;
    width: 8px;
    height: 8px;
}

#torneiras .card-header h6 {
    color: #000;
}

#torneiras .card-header.group-title {
    background-color: var(--dark);
}

#torneiras .card-header.group-title h6 {
    font-size: 1.3rem;
    color: white !important;
}

#torneiras .contact-card .cp-img {
    margin-bottom: 10px;
}

#torneiras .contact-card .cp-img img {
    max-width: 50px;
    max-height: 50px;
}

#torneiras .contact-card .c-info-list__item {
    margin-bottom: 0;
}

#torneiras .contact-card .c-info-list__item p {
    margin-bottom: 2px;
    font-size: 11px;
    width: 100%;
}

#torneiras .link-btn-disabled {
    cursor: not-allowed !important;
    opacity: 0.5;
}

#torneiras .link-btn-disabled:hover {
    color: inherit !important;
    background-color: inherit !important;
}

#torneiras .progress {
    height: 12px;
}

#torneiras .user-group-progress-bar .progress-percentage.color-danger {
    color: #ff4d4f;
    font-weight: 700;
}

#torneiras .user-group-progress-bar .progress-percentage.color-success {
    color: #20c997;
    font-weight: 700;
}

#torneiras .user-group-progress-bar .progress-percentage.color-warning {
    color: #fa8b0c;
    font-weight: 700;
}

#torneiras .tap-progress .user-group-progress-top {
    margin-bottom: 5px;
}

#torneiras li.nav-notification__single span {
    font-weight: 400;
}

#torneiras li.nav-notification__single p {
    margin-bottom: 0;
    font-weight: 600;
    font-size: .8rem;
}

#torneiras h6.dropdown-wrapper__title {
    text-transform: uppercase !important;
    text-align-last: left;
}

#torneiras .dropdown-wrapper ul {
    padding-top: 10px;
    padding-bottom: 15px;
}

.tap-card {
    border: 2px solid var(--dark) !important;
}

.bg-opacity-degas {
    background-color: var(--degas-primary) !important;
}


#venda.cancelar_pedido .table th,
#venda.cancelar_pedido .table td {
    padding: 0.5rem;
}

.revenue .dropdown-menu {
    top: 34px !important;
    padding: 0;
}

.revenue .table--default th,
.revenue .table--default td {
    padding: 9px 15px;
}

table .table-action svg {
    color: #9299b8;
    width: 16px;
}

#produto .card .card-header .card-tab-links a {
    font-size: 0.9rem
}

#produto .dropdown i {
    font-size: 20px
}

/* ---------------- */
/* ---- MENU SUPERIOR DIREITO ----- */
/* ---------------- */
#reader-status .danger.nav-item-toggle:before {
    background: #ff4d4f;
}

#reader-status .success.nav-item-toggle:before {
    background: #20c997;
}

/* ---------------- */
/* ---- TOAST ----- */
/* ---------------- */
.toast-error {
    background-color: #ff4d4f !important;
}

.toast-info {
    background-color: #2c99ff !important;
}

.toast-success {
    background-color: #20c997 !important;
}

.toast-warning {
    background-color: #fa8b0c !important;
}

.toast-message {
    line-height: 1.3;
}

.toast-info>.toast-title {
    font-weight: 400;
    font-size: .95rem;
    /* line-height: 1.1; */
}

.toast-info>.toast-message {
    font-weight: 700;
    font-size: .95rem;
}

.toast-info {
    background-color: var(--dark) !important;
    background-image: none !important;
    max-width: 375px;
    padding: 15px;
    width: max-content !important;
    min-width: 300px;
}

#toast-container>div {
    opacity: .95 !important;
}

.signUP-admin-left {
    padding-top: 1rem;
}

.signUP-admin-left__content h1.login-brand {
    font-family: "Monument Extended", sans-serif;
    font-weight: 600;
    font-size: 3rem !important;
    color: #000 !important;
}


/* Cor do input quando preenchido com autofill */
input:-webkit-autofill {
    box-shadow: 0 0 0 50px white inset;
    /* Change the color to your own background color */
    -webkit-box-shadow: 0 0 0 50px white inset;
    /* Change the color to your own background color */
    -webkit-text-fill-color: #333;
}

input:-webkit-autofill:focus {
    box-shadow: 0 0 0 50px white inset;
    /*your box-shadow*/
    -webkit-box-shadow: 0 0 0 50px white inset;
    /*your box-shadow*/
    -webkit-text-fill-color: #333;
}

/* ------------------- */
/* ---- CHECKBOX ----- */
/* ------------------- */

input[type="checkbox"] {
    all: unset;
    border: 1px solid #9299b8;
    width: 14px;
    height: 14px;
    display: inline-block;
    border-radius: 3px;
    transition: all 0.3s ease 0s;
}

input[type="checkbox"]::before {
    position: relative;
    opacity: 0;
    border: 1px solid var(--primary);
    background: var(--primary);
    top: 1px;
    left: 1px;
    display: block;
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 3px;
    transition: all 0.3s ease 0s;
}

input[type="checkbox"]:checked::before {
    opacity: 1;
    transition: all 0.3s ease 0s;
}

#check_pos_code:hover {
    cursor: pointer;
}

div#loading-pos_code {
    position: absolute;
    top: 25%;
    right: 5%;
}

span#spinn-pos_code {
    background: #5f63f2 !important;
}

/* Produtos */
table.table.table-rounded.table-products tbody tr td:first-child {
    padding: 12px 4px 12px 22px;
    width: 50%;
}

.product__no_category {
    color: var(--extra-light) !important;
    font-weight: 400;
    font-style: oblique;
}

#category table.table-rounded tbody tr:hover td {
    background-color: unset;
}

.chosen-container {
    display: inline-block !important;
}

.chosen-drop {
    width: inherit !important;
}

div#id_product_chosen {
    width: inherit !important;
}

div.div-products-list .chosen-drop {
    top: 0 !important;
}

@media only screen and (hover: none) and (pointer: coarse),
only screen and (hover: hover) and (pointer: coarse) {
    div.div-products-list .chosen-drop {
        top: -50px !important;
    }
}

#delete-title {
    flex-direction: column-reverse !important;
    justify-content: center !important;
    align-self: center;
}

#delete-body {
    text-align: center !important;
}

.list-name {
    cursor: pointer;
}

.checkbox-theme-default .tag-gray {
    background-color: var(--gray);
    color: var(--white);
    font-weight: 400;
    font-size: 10px;
    line-height: 1;
    padding: 4px 5px;
    margin: 0 0 0 3px;
}

.drp-selected {
    display: none !important;
}

.fetch-cpf-balance:hover {
    cursor: pointer;
}

.text-wrap-balance {
    text-wrap: balance;
}

#product-sale .atbd-tab .nav-item:last-child {
    margin-right: 12px;
}

.dropdown-wrapper.tooltip {
    top: 25px !important;
    overflow: hidden;
    border: solid #ddd 1px;
    border-radius: 8px;
    right: -150px;
    min-width: 300px;
}

.loading-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 99998;
    background: white;
    opacity: .6;
    top: 0;
    left: 0;
    max-height: 100vh;
}

.loading-spinner {
    display: inline-block;
    position: absolute;
    z-index: 99999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Widget Input ImageField */
.img-field {
    max-width: 100px;
    max-height: 100px;
}

.img-field-clear:hover {
    color: var(--danger);
    cursor: pointer;
}

.max-32 {
    max-width: 32px;
    max-height: 32px;
}

.v-align-center {
    vertical-align: middle !important;
}

.v-align-top {
    vertical-align: top !important;
}

.v-align-baseline {
    vertical-align: baseline !important;
}

.v-align-bottom {
    vertical-align: bottom !important;
}

.v-align-text-top {
    vertical-align: text-top !important;
}

.v-align-text-bottom {
    vertical-align: text-bottom !important;
}

@media (max-width: 767px) {
    .btn-mais-opcoes {
        display: flex !important;
        justify-content: center !important;
        align-items: center;
        height: 100%;
        margin-top: 5px;
    }
}

tr.totais-produtos-vendidos {
    color: #5f63f2 !important;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-financeiro {
    width: 100%;
    table-layout: fixed;
}

.table-financeiro th,
.table-financeiro td {
    white-space: nowrap;
    text-align: right;
}

.table-financeiro th:first-child,
.table-financeiro td:first-child {
    text-align: left;
}

.empty-row {
    height: 200px;
    /* Garante espaço para a tabela mesmo quando vazia */
}

.text-truncate {
    /* Para texto com quebra de linha e reticências */
    display: -webkit-box;
    /* Define a célula como um contêiner flexível */
    -webkit-line-clamp: 2;
    /* Limita o número de linhas a 2 */
    -webkit-box-orient: vertical;
    /* Faz a quebra de linha ser vertical */
    overflow: hidden;
    /* Oculta o conteúdo que ultrapassar */
    text-overflow: ellipsis;
    /* Adiciona reticências */
    word-wrap: break-word;
    /* Garante que o texto não ultrapasse a largura da célula */
    white-space: normal;
    /* Permite que o texto quebre em várias linhas */
}

/* Estilo para cards de comandas */
.feature-cards.tab-cards {
    width: 100%;
    aspect-ratio: 1 / 1; /* garante proporção quadrada */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem;
    border-width: 3px !important;
    cursor: pointer;
}

.feature-cards.tab-cards figure {
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-cards.tab-cards figcaption {
    width: 100%;
}

.feature-cards.tab-cards h4 {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    line-height: 1.2;
    word-break: break-word;
}

.feature-cards figcaption {
    padding-left: 8px;
    padding-right: 8px;
}

.feature-cards.tab-cards .color-primary {
    font-size: 0.75rem;
}

.comanda-aberta {
    border-color: #28a745 !important; /* verde */
}

.comanda-travada {
    border-color: #dc3545 !important; /* vermelho */
}

.card #tab-customer-info {
    margin-bottom: 2rem !important;
}

.transfer-tab-item:hover i,
.remove-tab-item:hover i {
    opacity: 0.7;
    transform: scale(1.1);
}

.breadcrumb-title-center {
    text-align: center !important;
}

label .help {
    text-transform: none;
    font-size: 11px;
    color: gray;
}

.edit-profile__body input[type="checkbox"].form-control {
    height: auto !important;
    padding: 4px !important;
}


/* FOOTABLE */
.userDatatable table .max-width {
    /* max-width: min-content !important; */
    max-width: fit-content !important;
    text-align: left !important;
    text-wrap-mode: wrap;
}

.userDatatable table tbody td {
    border-bottom: 1px solid #dddddd;
}

.userDatatable table.adv-table .pagination {
    justify-content: flex-start !important;
}

@media (max-width: 767.98px) {

  /* Evitar scroll lateral */
  .adv-table-table .table-responsive {
      overflow-x: visible;
  }

  /* Some com o header da tabela no mobile */
  .table-products thead {
      display: none;
  }

  .table-products {
      width: 100%;
  }

  .table-products tbody {
      display: block;
  }

  /* Cada linha vira um "bloco" (card) */
  .table-products tbody tr {
      display: grid;
      width: 100%;
      margin: 0.4rem 0;
  }

  /* Zera padding/borda padrão das células */
  .table-products tbody tr td {
      border: 0;
      padding: 0;
  }

  /* Só a primeira célula (onde está o card) aparece */
  .table-products tbody tr td:first-child {
    display: block;
    width: 100%;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(15, 35, 52, 0.12);
    overflow: hidden;
    box-sizing: border-box;
    padding: 0.5rem;   /* <<< padding IGUAL nos 4 lados */
}

  /* Esconde TODAS as outras colunas no mobile */
  .table-products tbody tr td:not(:first-child) {
      display: none !important;
  }

  /* Some com o layout desktop dentro da primeira célula */
  .product-row-desktop {
      display: none !important;
  }

  /* -------- Layout interno do card -------- */

  .product-card-mobile {
      display: block;
      width: 100%;
      box-sizing: border-box;
  }

  .product-card-mobile__header {
      display: flex;
      align-items: center;
      margin-bottom: 0.3rem;
  }

  .product-card-mobile__image {
      width: 24px;
      height: 24px;
      border-radius: 0.4rem;
      overflow: hidden;
      margin-right: 0.4rem;
      flex-shrink: 0;
  }

  .product-card-mobile__image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
  }

  .product-card-mobile__header-text {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-width: 0;
  }

  .product-card-mobile__title {
      font-size: 0.9rem;
      font-weight: 600;
      color: #0f2334;
      line-height: 1.3;
      white-space: normal;
      word-wrap: break-word;
      word-break: break-word;
      margin-bottom: 0.1rem;
  }

  .product-card-mobile__type-line {
      display: flex;
      align-items: center;
  }

  .product-card-mobile__badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 0.35rem;
      height: 18px;
      border-radius: 999px;
      font-size: 0.65rem;
      font-weight: 500;
  }

  .product-card-mobile__badge.is-tap {
      background-color: rgba(92, 108, 255, 0.08);
      color: #5c6cff;
  }

  .product-card-mobile__badge.is-general {
      background-color: rgba(255, 184, 76, 0.12);
      color: #f5a623;
  }

  .product-card-mobile__info {
      margin-top: 0.25rem;
      margin-bottom: 0.3rem;
  }

  .product-card-mobile__info-line {
      display: flex;
      font-size: 0.76rem;
      line-height: 1.3;
      margin-bottom: 0.1rem;
  }

  .product-card-mobile__info-line:last-child {
      margin-bottom: 0;
  }

  .product-card-mobile__info-label {
      font-weight: 600;
      color: #6b7a90;
      margin-right: 0.25rem;
  }

  .product-card-mobile__info-value {
      color: #0f2334;
      flex: 1;
      min-width: 0;
      word-wrap: break-word;
      word-break: break-word;
  }

  .product-card-mobile__status.is-active {
      color: #1f9254;
      font-weight: 600;
  }

  .product-card-mobile__status.is-inactive {
      color: #b0b7c3;
      font-weight: 600;
  }

  /* Botão compacto com tamanho fixo */
  .product-card-mobile__edit-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      max-width: 100%;
      font-size: 0.75rem;
      height: 32px;
      padding: 0 0.5rem;
      gap: 0.25rem;
      border-width: 1px;
      box-sizing: border-box;
      margin-top: 0.25rem;
  }

  .product-card-mobile__edit-btn span[data-feather="edit"] {
      width: 13px;
      height: 13px;
  }
}