/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e9ecef;
}

body.dark-mode .bg-white {
    background-color: #2d2d2d !important;
    color: #e9ecef;
}

body.dark-mode .card {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #e9ecef;
}

body.dark-mode .modal-content {
    background-color: #2d2d2d;
    color: #e9ecef;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #1a1a1a;
    border-color: #404040;
    color: #e9ecef;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    background-color: #1a1a1a;
    border-color: #0d6efd;
    color: #e9ecef;
}

body.dark-mode .text-muted {
    color: #adb5bd !important;
}

body.dark-mode .border-bottom {
    border-color: #404040 !important;
}

body.dark-mode .order-card {
    background-color: #2d2d2d;
    border-color: #404040;
}

body.dark-mode .order-card:hover {
    background-color: #353535;
}

body.dark-mode .stat-card {
    background-color: #2d2d2d;
    border-color: #404040;
}

body.dark-mode .input-group-text {
    background-color: #2d2d2d !important;
    border-color: #404040;
    color: #e9ecef;
}

body.dark-mode .badge {
    filter: brightness(0.9);
}

body.dark-mode .btn-outline-secondary {
    color: #adb5bd;
    border-color: #404040;
}

body.dark-mode .btn-outline-secondary:hover {
    background-color: #404040;
    color: #e9ecef;
}

body.dark-mode .product-item {
    background-color: #1a1a1a;
    border-color: #404040;
}

/* Header */
header {
    z-index: 1000;
}

/* Stats Cards */
.stat-card {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 1.4rem;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
}

/* Order Card */
.order-card {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: .8rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: .5rem;
}

.order-title {
    font-size: .9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-id {
    font-size: 0.75rem;
    color: #6c757d;
    font-family: 'Courier New', monospace;
}

.order-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item i {
    color: #6c757d;
}

.product-list-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    justify-content: space-between;
}

.product-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 25px !important;
}

.product-icon {
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.product-icon:hover {
    color: #0d6efd;
}

.order-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
}

/* Badges */
.badge {
    padding: 0.35rem 0.75rem;
    font-weight: 500;
    font-size: 0.75rem;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-in_production {
    background-color: #cfe2ff;
    color: #084298;
}

.status-completed {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-error {
    background-color: #f8d7da;
    color: #842029;
}

.status-delivered {
    background-color: #e2e3e5;
    color: #41464b;
}

.payment-paid {
    background-color: #d1e7dd;
    color: #0f5132;
}

.payment-pending {
    background-color: #fff3cd;
    color: #856404;
}

.payment-partial {
    background-color: #cfe2ff;
    color: #084298;
}

.payment-cancelled {
    background-color: #f8d7da;
    color: #842029;
}

/* Product Form */
.product-form-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

body.dark-mode .product-form-item {
    background-color: #1a1a1a;
    border-color: #404040;
}

.product-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-form-title {
    font-weight: 600;
    font-size: 0.875rem;
}

.remove-product-btn {
    color: #dc3545;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.remove-product-btn:hover {
    color: #bb2d3b;
}

/* Fulfillment Indicator */
.fulfillment-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background-color: #198754;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Empty State */
#emptyState i {
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        gap: 1rem;
    }

    .order-actions {
        flex-direction: column;
    }

    .order-actions .btn {
        width: 100%;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

/* Image Preview */
.stamp-preview {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stamp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stamp-item {
    text-align: center;
}

.stamp-item h6 {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-card {
    animation: fadeIn 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #555;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #777;
}

 body {
    min-height: 100vh;
    overflow-x: hidden;
}

.sidebar {
    width: 260px;
    min-height: 100vh;
    position: fixed;
    left: -260px;
    transition: left 0.3s;
    z-index: 1050;
}

.sidebar.show {
    left: 0;
}

.content {
    margin-left: 0;
}

.sidebar .nav-link {
    color: #adb5bd;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: #fff;
    background-color: #495057;
    border-radius: 0.375rem;
}

.content {
    margin-left: 260px;
    padding: 20px;
}

.brand-logo {
    height: 50px;
}

.navbar-nav {
    gap: 20px;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.login-logo {
    max-width: 250px;
    width: 100%;
}

.swal2-title {
    font-size: 1.1rem !important;
}

.swal2-styled.swal2-confirm {
    background-color: #212529;
}

.bloco-info {
    display: flex;
    flex-flow: column;
    gap: 10px;
    align-content: center;
    justify-content: center;
    margin: 0px;
    padding: 0px;
}

.nav-tabs .nav-link {
    border: none !important;
}

.nav-tabs .nav-link.active {
    background: none !important;
}

.fade-on-hover {
    opacity: 50%;
    transition: opacity .2s ease;
    background: #f2f2f2;
    background-color: #f2f2f2;
}

.fade-on-hover:hover {
    opacity: 100%;
    background: #eaeaea;
    background-color: #eaeaea;
}

svg {
    color: rgb(107 114 128);
}

svg:hover {
    color: rgb(82 82 82);
}

.img-estampa {
    max-height: 250px;
    object-fit: contain;
}

.btn-alterar-fundo-img {

}

.bg-purple {
    background-color: #722dd2;
    background: #722dd2;
}

.vh-50 {
    height: 50vh !important;
}

.pointer {
    cursor: pointer;
}

.fancybox-slide::before {
    height: 0px !important;
}

.center-center {
    justify-content: center;
    align-items: center;
}

.lightbox {
    z-index: 999998 !important;
}

.swal2-container {
    z-index: 999999 !important;
}

.fancybox-content {
    max-width: 1366px;
    margin: auto;
    background: #f8f9fa;
    background-color: #f8f9fa;
    width: 100%;
}

.max-width-100px {
    max-width: 100px !important;
}

.max-width-150px {
    max-width: 150px !important;
}

.max-width-200px {
    max-width: 200px !important;
}

.bg-white {
    background: #FFF !important;
    background-color: #FFF !important;
}

.produto-tab {
    background: #f5f6f8 !important;
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid #c3c3c3 !important;
    box-shadow: 0px 0px 2px rgba(0,0,0, .2);
    font-size: 10px !important;
    color: #71717a;
}

.produto-tab.active {
    background: #FFF !important;
    color: #000;
}

.fs-7 {
    font-size: 0.75em;
}

.fs-8 {
    font-size: 0.65em;
}

.fs-9 {
    font-size: 0.5em;
}

.collapse:not(.show) {
    display: none;
}

.collapse.show {
    display: block;
    visibility: initial !important;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height .35s ease;
}

.container {
    max-width: 1320px !important;
}

.muted-block {
    background-color: #f1f5f9;
    color: rgb(75 85 99);
    font-size: 0.75rem;
    line-height: 1rem;
}

.demonstrativo-cor {
  width: 25px;
  height: 25px;
  border-radius: 100%;
  box-shadow: 1px 1px 1px rgba(0,0,0, .3);
  border: 1px solid rgba(0,0,0, .1);
}

.max-height-overflow-y {
  max-height: 100vh;
  overflow-y: auto;
}

.contador-circulo {
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  border-radius: 100%;
  padding-top: 1px;
  font-size: 12px;
  align-items: center;
}

.bg-light-warning {
  background: #fff7e8;
  color: #faad14;
}

.bg-light-danger {
  background: #ffeded;
  color: #ff4d4f;
}

.bg-light-light {
  background: #fefeff;
  color: #f8f9fa;
}

.bg-light-dark {
  background: #e8e8e8;
  color: #141414;
}

.bg-light-primary {
  background: #e8f1ff;
  color: #1677ff;
}

.badge.bg-light-secondary {
  background: #f0f1f2;
  color: #6c757d;
}

.btn-outline-dark {
  color: #141414 !important;
  border-color: #141414 !important;
}

.btn-outline-dark:hover {
  color: #FFF !important;
  text-decoration: none;
  background-color: #141414 !important;
  border-color: #141414 !important;
}

.max-width-200 {
  max-width: 200px;
}

.container_todos_templates_rastreio_1698873585 * {
    scrollbar-width: thin;
    scrollbar-color: #e8e8e8 #fafafa;
    font-family: inherit !important;
    box-sizing: border-box;
    word-break: break-word;
  }


  .container_todos_templates_rastreio_1698873585 * {
    scrollbar-width: thin;
    scrollbar-color: #e8e8e8 #fafafa;
    font-family: inherit !important;
    box-sizing: border-box;
    word-break: break-word;
  }

  .container_each_status_template_rastreio_1698873585 > div {
    display: flex;
    min-height: 55px;
    margin: 0;
      margin-top: 0px;
      margin-bottom: 0px;
    margin-block-start: unset !important;
  }

  .container_each_status_template_rastreio_1698873585 > div > div {
    display: flex;
    min-height: 55px;
    position: relative;
  }

  .container_todos_templates_rastreio_1698873585 * {
    scrollbar-width: thin;
    scrollbar-color: #e8e8e8 #fafafa;
    font-family: inherit !important;
    box-sizing: border-box;
    word-break: break-word;
  }


  .container_each_status_template_rastreio_1698873585 > div > div > .each_status_date_rastreio_1698873585 {
    display: flex;
    margin-right: 20px;
    min-width: 60px;
    font-size: 11px;
    word-break: normal !important;
	word-wrap: normal;
    gap: 5px;
  }

  .container_todos_templates_rastreio_1698873585 * {
	scrollbar-width: thin;
	scrollbar-color: #e8e8e8 #fafafa;
	font-family: inherit !important;
	box-sizing: border-box;
	word-break: break-word;
}

.container_each_status_template_rastreio_1698873585 > div > div > .each_status_date_rastreio_1698873585 {
	display: flex;
	margin-right: 20px;
	min-width: 60px;
	font-size: 11px;
	word-break: normal !important;
}

.container_each_status_template_rastreio_1698873585 > div > div > .each_status_date_rastreio_1698873585 > strong, .container_each_status_template_rastreio_1698873585 > div > div > .each_status_date_rastreio_1698873585 small {
	word-break: normal !important;
}

.container_todos_templates_rastreio_1698873585 * {
	scrollbar-width: thin;
	scrollbar-color: #e8e8e8 #fafafa;
	font-family: inherit !important;
	box-sizing: border-box;
	word-break: break-word;
}

.container_each_status_template_rastreio_1698873585 > div > div > .each_status_circle_rastreio_1698873585 {
	height: 14px;
	width: 14px;
	border: 3px solid rgba(221,221,221,.2117647059);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: content-box !important;
	margin: 0;
}

.container_each_status_template_rastreio_1698873585 > div > div > .each_status_circle_rastreio_1698873585 > .dashed_vertical_line_rastreio_1698873585 {
	position: absolute;
	bottom: 2px;
	border-right: 2px dashed rgb(0,0,0);
	height: calc(100% - 25px);
}

.master_container_rastreio_script_1698873585 div:empty {
	display: inherit !important;
}

.container_todos_templates_rastreio_1698873585 * {
	scrollbar-width: thin;
	scrollbar-color: #e8e8e8 #fafafa;
	font-family: inherit !important;
	box-sizing: border-box;
	word-break: break-word;
}

.container_each_status_template_rastreio_1698873585 > div > div > .each_status_circle_rastreio_1698873585 > .each_status_inner_circle_rastreio_1698873585 {
	height: 10px;
	width: 10px;
	border-radius: 50%;
	background: black;
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	margin: 0;
	min-height: auto;
}

.container_todos_templates_rastreio_1698873585 * {
	scrollbar-width: thin;
	scrollbar-color: #e8e8e8 #fafafa;
	font-family: inherit !important;
	box-sizing: border-box;
	word-break: break-word;
}

.container_each_status_template_rastreio_1698873585 > div > div > .each_status_circle_rastreio_1698873585 > .each_status_inner_img_rastreio_1698873585 > svg {
	display: none;
}

.container_each_status_template_rastreio_1698873585 > div > div:last-of-type {
	display: flex;
	flex-direction: column;
}

.container_each_status_template_rastreio_1698873585 > div > div {
	display: flex;
	min-height: 55px;
	position: relative;
}

.container_todos_templates_rastreio_1698873585 * {
	scrollbar-width: thin;
	scrollbar-color: #e8e8e8 #fafafa;
	font-family: inherit !important;
	box-sizing: border-box;
	word-break: break-word;
}

.container_each_status_template_rastreio_1698873585 > div > .each_status_date_description_rastreio_1698873585 > strong {
	line-height: 1;
}

.container_todos_templates_rastreio_1698873585 * {
	scrollbar-width: thin;
	scrollbar-color: #e8e8e8 #fafafa;
	font-family: inherit !important;
	box-sizing: border-box;
	word-break: break-word;
}

.container_todos_templates_rastreio_1698873585 * {
	scrollbar-width: thin;
	scrollbar-color: #e8e8e8 #fafafa;
	font-family: inherit !important;
	box-sizing: border-box;
	word-break: break-word;
}

.container_todos_templates_rastreio_1698873585 * {
	scrollbar-width: thin;
	scrollbar-color: #e8e8e8 #fafafa;
	font-family: inherit !important;
	box-sizing: border-box;
	word-break: break-word;
}

.container_each_status_template_rastreio_1698873585 > div:last-of-type > div > .each_status_circle_rastreio_1698873585 > .dashed_vertical_line_rastreio_1698873585 {
    display: none !important;
  }

  .container_status_summary_template_rastreio_1698873585 > .content_status_template_rastreio_1698873585 > .img_status_template_rastreio_1698873585 svg {
	width: 20px !important;
	height: 20px !important;
}

@container (max-width: 640px) {
.container_status_summary_template_rastreio_1698873585 > .container_dashed_line_rastreio_1698873585:not(:first-child) > .dashed_line_rastreio_1698873585 {
    display: none !important;
}
}

@container (max-width: 425px) {
.container_status_summary_template_rastreio_1698873585 .content_status_template_rastreio_1698873585 {
    display: none !important;
}
}

.fs-14 {
    font-size: 14px !important;
}