.graph {
    max-height: 275px;
    max-width: 275px;
}

.view-bills {
    font-weight: 550;
}

.table-wrapper-scroll-y {
    display: block;
}

.my-custom-scrollbar {
    position: relative;
    height: 320px;
    overflow: auto;
    width: 100%;
    min-height: 41vh !important
}

.my-custom-scrollbar::-webkit-scrollbar {
    width: 3px !important;
    height: 5px !important;
}

.input-sm {
    height: 30px;
}

.input-sm-2 {
    height: 10px;
}

.report-text {
    font-size: 11px;
}

.ledger-text {
    font-size: 12px;
}

.bill-text {
    font-size: 15px;
}

.my-custom-scrollbar-stock {
    position: relative;
    height: 380px;
    overflow: auto;
    width: 100%;
    min-height: 53vh !important
}

.status-container {
    height: 250px;
    overflow-y: scroll;
    padding: 5px;
}

.my-custom-scrollbar-stock::-webkit-scrollbar {
    width: 3px !important;
    height: 5px !important;
}

.my-custom-scrollbar-ledger {
    position: relative;
    height: 450px;
    overflow: auto;
    width: 100%;
    min-height: 65vh !important
}

.my-custom-scrollbar-ledger::-webkit-scrollbar {
    width: 3px !important;
    height: 5px !important;
}

.my-custom-scrollbar-bill2 {
    position: relative;
    height: 300px;
    overflow: auto;
    width: 100%;
    min-height: 50vh !important
}

.my-custom-scrollbar-bill2::-webkit-scrollbar {
    width: 3px !important;
    height: 5px !important;
}

.pos-code {
    font-weight: 750;
    font-size: 16px;
}

.pos-text {
    font-size: 13px;
}

.pos-card:active + .pos-card,
.pos-card:checked + .pos-card,
.pos-card.active,
.pos-card:active,
.pos-card:focus {
    color: #FFF;
    background-color: rgba(0, 204, 189, .5);
}

.pos-card:hover:not(.disabled):not(:disabled) {
    color: #FFF;
    background-color: rgba(0, 204, 189, .5);
}

.pos-card-wrapper-scroll-y {
    display: block;
}

.my-custom-scrollbar-pos-card {
    position: relative;
    height: 400px;
    overflow: auto;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 55vh !important
}

.my-custom-scrollbar-pos-card::-webkit-scrollbar {
    width: 3px !important;
}

.my-custom-scrollbar-pos-card::-webkit-scrollbar-track {
    background: transparent;
}

.my-custom-scrollbar-pos-card::-webkit-scrollbar-thumb {
    background: transparent;
}

.my-custom-scrollbar-pos-card::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

.order-list-wrapper-scroll-y {
    display: block;
}

.my-custom-scrollbar-order-list {
    position: relative;
    height: 210px;
    overflow: auto;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 30vh !important
}

.my-custom-scrollbar-order-list::-webkit-scrollbar {
    width: 3px !important;
}

.my-custom-scrollbar-order-list::-webkit-scrollbar-track {
    background: transparent;
}

.my-custom-scrollbar-order-list::-webkit-scrollbar-thumb {
    background: transparent;
}

.my-custom-scrollbar-order-list::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

.btn-counter {
    max-height: 30px;
    max-width: 30px;
}

.customer-badge {
    height: 30px;
    width: 30px;
}

.login-cover {
    min-height: 780px;
    max-width: 1200px;
}

.inventory-text {
    font-size: 13px;
}

.match-height > [class*=col] {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-flow: column;
    -ms-flex-flow: column;
    flex-flow: column
}

.match-height > [class*=col] > .card {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto
}

.login-logo {
    width: 60px !important;
}

.board-title {
    background-color: #f1f1f1;
    padding: 5px 20px;
}

.flex {
    display: flex;
    flex-direction: row;
}

.scrum-board {
    flex: 1;
    padding: 20px;
}

.scrum-board-processing {
    flex: 1;
    padding: 20px;
    border-right: 1px solid #ddd;
    border-left: 1px solid #ddd;
}

.scrum-task-pending {
    position: relative;
    display: block;
    padding: 10px;
    border: .5px solid #8392ab;
    border-left: 5px solid #8392ab;
    margin-bottom: 10px;
    border-radius: 15px;
    background-color: #fff;
    cursor: all-scroll;
}

.scrum-task-processing {
    position: relative;
    display: block;
    padding: 10px;
    border: .5px solid #faae42;
    border-left: 5px solid #faae42;
    margin-bottom: 10px;
    border-radius: 15px;
    background-color: #fff;
    cursor: all-scroll;
}

.scrum-task-ready {
    position: relative;
    display: block;
    padding: 10px;
    border: .5px solid #2dce89;
    border-left: 5px solid #2dce89;
    margin-bottom: 10px;
    border-radius: 15px;
    background-color: #fff;
    cursor: all-scroll;
}

.scrum-board-column {
    min-height: 200px;
    padding: 10px;
    height: 100%;
}

.today-task-pending {
    position: relative;
    display: block;
    padding: 5px;
    border: .5px solid #8392ab;
    border-left: 5px solid #8392ab;
    margin-bottom: 5px;
    border-radius: 15px;
    background-color: #fff;
}

.today-task-processing {
    position: relative;
    display: block;
    padding: 5px;
    border: .5px solid #faae42;
    border-left: 5px solid #faae42;
    margin-bottom: 5px;
    border-radius: 15px;
    background-color: #fff;
}

.today-task-ready {
    position: relative;
    display: block;
    padding: 5px;
    border: .5px solid #2dce89;
    border-left: 5px solid #2dce89;
    margin-bottom: 5px;
    border-radius: 15px;
    background-color: #fff;
}

.today-task-delivered {
    position: relative;
    display: block;
    padding: 5px;
    border: .5px solid #0083ff;
    border-left: 5px solid #0083ff;
    margin-bottom: 5px;
    border-radius: 15px;
    background-color: #fff;
}

.today-task-returned {
    position: relative;
    display: block;
    padding: 5px;
    border: .5px solid #f5365c;
    border-left: 5px solid #f5365c;
    margin-bottom: 5px;
    border-radius: 15px;
    background-color: #fff;
}

.input-counter {
    max-width: 80px !important;
}

.prevent-scroll {
    overflow: hidden;
}

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

/* Ellipsis for single-line client name in cards */
.client-name-1l {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure flex child can actually shrink for ellipsis */
.min-w-0 { 
    min-width: 0 !important; 
}

/* Two-line clamp for customer names */
.client-name-2l {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.1rem;
    max-height: calc(1.1rem * 2);
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ===== MELHORIAS PARA CARDS UNIFORMES ===== */

/* Altura fixa para os cards de hoje */
.today-task-pending,
.today-task-processing,
.today-task-ready,
.today-task-delivered,
.today-task-returned {
    min-height: 90px !important;
    max-height: 90px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Header do card com altura controlada */
.card-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    height: 40px; /* Altura fixa para o header */
    overflow: hidden;
}

/* Container para nome do cliente */
.customer-name-wrapper {
    flex: 1;
    min-width: 0;
    margin-right: 8px;
    overflow: hidden;
    height: 100%;
}

/* Container para número do pedido */
.order-number-wrapper {
    flex-shrink: 0;
    text-align: right;
    height: 100%;
    display: flex;
    align-items: flex-start;
}

/* Classe específica para nomes muito longos com "..." funcionando */
.long-name-truncate {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.0rem !important;
    max-height: 2.0rem !important;
    word-break: break-word !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    width: 100% !important;
}

/* Container dos ícones de serviço - altura fixa */
.service-icons-container {
    height: 32px;
    display: flex;
    align-items: center;
    margin-top: auto;
    overflow: hidden;
}

/* Melhorias para colunas do grid */
.dashboard-card-column {
    display: flex;
    flex-direction: column;
}

.dashboard-card-column > div {
    flex: 1;
}

/* Altura uniforme para todos os cards da dashboard */
.uniform-card-height {
    min-height: 90px !important;
    max-height: 90px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Classe utilitária para texto responsivo */
.text-responsive {
    font-size: clamp(0.65rem, 1.8vw, 0.7rem);
    font-weight: 600;
}

/* Fix para WebKit browsers - força o ellipsis */
@supports (-webkit-line-clamp: 2) {
    .long-name-truncate {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: initial !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
}

/* Fallback para browsers que não suportam line-clamp */
@supports not (-webkit-line-clamp: 2) {
    .long-name-truncate {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
}