* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f5f8;
    color: #1f2937;
}

a {
    color: inherit;
}

.cc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.cc-button-primary {
    width: 100%;
    border-color: #0f766e;
    background: #0f766e;
    color: #fff;
}

.cc-button-light {
    background: #f8fafc;
}

.cc-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef2f7 0%, #dbeafe 100%);
}

.cc-login-shell {
    width: min(940px, calc(100vw - 32px));
    display: grid;
    justify-items: center;
}

.cc-login-panel {
    width: min(420px, 100%);
    padding: 28px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.cc-login-brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
}

.cc-login-brand img {
    max-width: 88px;
    max-height: 58px;
    object-fit: contain;
}

.cc-login-brand h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.cc-login-brand p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

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

.cc-login-form label {
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.cc-login-form input {
    width: 100%;
    height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 15px;
    outline: none;
}

.cc-login-form input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.cc-login-message {
    min-height: 22px;
    margin-top: 14px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
}

.cc-app-body {
    min-height: 100vh;
    background: #eef2f7;
    overflow: auto !important;
}

.cc-app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
}

.cc-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 18px 14px;
    background: #162033;
    color: #e5edf7;
}

body.cc-app-body #menu.cc-nav {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    overflow: visible !important;
}

.cc-brand {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 8px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cc-brand img {
    max-width: 190px;
    max-height: 58px;
    object-fit: contain;
}

.cc-nav-list {
    list-style: none;
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    background: transparent !important;
}

.cc-sidebar .jcarousel-container,
.cc-sidebar .jcarousel-clip,
.cc-sidebar .jcarousel-clip-horizontal,
.cc-sidebar .jcarousel-list,
.cc-sidebar .jcarousel-list-horizontal {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
}

.cc-sidebar .jcarousel-prev,
.cc-sidebar .jcarousel-next {
    display: none !important;
}

.cc-nav-list li {
    float: none !important;
    width: auto !important;
    height: auto !important;
    list-style: none !important;
}

.cc-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 6px;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.cc-nav-link:hover,
.cc-nav-link-active {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.cc-nav-icon {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: #b7c7dc;
    display: inline-flex;
    flex: 0 0 28px;
    font-size: 13px;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    line-height: 1;
}

.cc-nav-link:hover .cc-nav-icon,
.cc-nav-link-active .cc-nav-icon {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

.cc-main {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
}

.cc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 86px;
    padding: 18px 24px;
    border-bottom: 1px solid #d9e1ec;
    background: #fff;
}

.cc-kicker {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.cc-topbar h1 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    line-height: 1.2;
}

.cc-userbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.cc-content {
    min-width: 0;
    margin: 18px;
    padding: 18px;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    background: #fff;
    overflow: auto;
}

body.cc-app-body #box_cont.cc-content {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: calc(100vh - 124px);
    z-index: auto !important;
}

body.cc-app-body #background_base,
body.cc-app-body #box_topo,
body.cc-app-body #box_rodape {
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
}

.cc-content #box_titulo_cont_showf,
.cc-content #anim_initial,
.cc-content #background_cont {
    display: none !important;
}

.cc-content #list_conv_fechamento,
.cc-content #box_total_conv {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.cc-content #box_titulo_cont {
    display: none;
}

.cc-content #fundo_cont,
.cc-content #box_form_scroll,
.cc-content #box_space {
    width: 100% !important;
    max-width: 100% !important;
}

.cc-content table {
    max-width: 100%;
}

.cc-content input[type="text"],
.cc-content input[type="password"],
.cc-content select,
.cc-content textarea {
    min-height: 32px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 5px 8px;
}

.cc-content input[type="submit"],
.cc-content input[type="button"],
.cc-content button {
    min-height: 34px;
    border: 1px solid #0f766e;
    border-radius: 5px;
    background: #0f766e;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.cc-loading {
    padding: 18px 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.cc-dashboard {
    display: grid;
    gap: 16px;
}

.cc-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cc-card {
    padding: 18px;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    background: #fff;
}

.cc-card h2 {
    margin: 4px 0 8px;
    color: #111827;
    font-size: 18px;
}

.cc-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.45;
}

.cc-card-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f8fafc;
}

.cc-card-feature strong {
    display: block;
    color: #0f766e;
    font-size: 30px;
    line-height: 1.15;
}

.cc-card-action {
    width: auto;
    white-space: nowrap;
}

.cc-consumer-link-card {
    grid-column: 1 / -1;
}

.cc-consumer-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}

.cc-consumer-link input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
}

.cc-consumer-link-status {
    display: block;
    min-height: 18px;
    margin-top: 8px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 700;
}

.cc-lgpd-summary {
    margin-bottom: 16px;
}

.cc-lgpd-content {
    display: grid;
    gap: 7px;
    margin-top: 16px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.cc-lgpd-content textarea {
    width: 100%;
    min-height: 420px;
    resize: vertical;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #1f2937;
    font: 14px/1.55 Arial, Helvetica, sans-serif;
}

.cc-form-note {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.cc-app-color-grid {
    display: grid;
    grid-template-columns: 160px minmax(220px, .7fr) minmax(260px, 1fr);
    gap: 16px;
    align-items: end;
    margin-bottom: 16px;
}

.cc-app-color-picker {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.cc-app-color-picker input {
    width: 100%;
    height: 42px;
    padding: 3px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
}

.cc-app-color-preview {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 4px 12px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid #d9e1ec;
    border-radius: 6px;
    background: #f8fafc;
}

.cc-app-color-preview span {
    grid-row: 1 / 3;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    background: var(--preview-color);
}

.cc-app-color-preview strong { color: #1f2937; font-size: 14px; }
.cc-app-color-preview small { color: #64748b; font-size: 12px; }

.cc-access-filter {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(180px, 260px) auto;
    align-items: end;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.cc-access-filter .cc-button-primary { width: auto; }

@media (max-width: 860px) {
    .cc-app-color-grid { grid-template-columns: 1fr; }
    .cc-access-filter { grid-template-columns: 1fr; }
    .cc-access-filter .cc-button-primary { width: 100%; }
}

@media (max-width: 720px) {
    .cc-consumer-link {
        grid-template-columns: 1fr 1fr;
    }

    .cc-consumer-link input {
        grid-column: 1 / -1;
    }
}

.cc-section-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.cc-table-wrap {
    width: 100%;
    overflow: auto;
}

.cc-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.cc-table th,
.cc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    font-size: 14px;
}

.cc-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 800;
}

.cc-table tr:hover td {
    background: #f8fafc;
}

.cc-empty {
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    background: #f8fafc;
}

.cc-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cc-module-card {
    min-height: 240px;
    display: grid;
    align-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.cc-module-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e0f2f1;
    color: #0f766e;
    font-size: 22px;
    font-weight: 800;
}

.cc-module-card h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 20px;
}

.cc-module-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.45;
}

.cc-module-actions {
    display: grid;
    gap: 10px;
}

.cc-report-grid .cc-module-card {
    min-height: 270px;
}

.cc-form-shell {
    display: grid;
    gap: 16px;
}

.cc-form-shell .cc-section-header {
    align-items: center;
    margin-bottom: 0;
}

.cc-form-shell h2 {
    margin: 0;
    color: #111827;
    font-size: 22px;
}

.cc-form {
    display: grid;
    gap: 16px;
}

.cc-form-section {
    padding: 18px;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    background: #fff;
}

.cc-form-section h3 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 16px;
}

.cc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cc-field {
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.cc-field-full {
    grid-column: 1 / -1;
}

.cc-field input,
.cc-field select,
.cc-field textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 10px;
    color: #111827;
    font-size: 14px;
    background: #fff;
}

.cc-field input:focus,
.cc-field select:focus,
.cc-field textarea:focus {
    border-color: #0f766e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.cc-check-row {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 4px;
}

.cc-check-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.cc-check-row input {
    width: 16px;
    height: 16px;
    accent-color: #0f766e;
}

.cc-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cc-form-actions .cc-button {
    width: auto;
}

.cc-help-text {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.cc-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cc-actions .cc-button-primary {
    width: auto;
}

.cc-readonly-value {
    min-height: 40px;
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 10px;
    background: #f8fafc;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.cc-list-shell {
    display: grid;
    gap: 16px;
}

.cc-list-shell .cc-section-header {
    align-items: center;
    margin-bottom: 0;
}

.cc-list-shell h2 {
    margin: 0;
    color: #111827;
    font-size: 22px;
}

.cc-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cc-header-actions .cc-button-primary {
    width: auto;
}

.cc-search {
    min-width: 260px;
    min-height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 12px;
    color: #111827;
    background: #fff;
}

.cc-data-table td strong {
    display: block;
    color: #111827;
}

.cc-muted {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.cc-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.cc-status-ok {
    background: #dcfce7;
    color: #166534;
}

.cc-status-warn {
    background: #fef3c7;
    color: #92400e;
}

.cc-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cc-action-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f766e;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.cc-action-link:hover {
    border-color: #0f766e;
    background: #f0fdfa;
}

.cc-action-danger {
    color: #b91c1c;
}

.cc-action-danger:hover {
    border-color: #b91c1c;
    background: #fef2f2;
}

.cc-action-disabled {
    color: #94a3b8;
}

.cc-modal-message {
    padding: 18px;
    text-align: center;
}

.cc-modal-message p {
    margin: 0 0 14px;
    color: #111827;
    font-weight: 700;
}

.cc-modal-message button {
    min-width: 72px;
    margin: 0 4px;
}

.cc-alert {
    margin-top: 14px;
    padding: 11px 12px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #991b1b;
    background: #fef2f2;
    font-size: 13px;
    font-weight: 700;
}

.cc-alert-success {
    border-color: #99f6e4;
    background: #ecfdf5;
    color: #0f766e;
}

.cc-table-action {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f766e;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.cc-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.cc-inline-check input,
.cc-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0f766e;
}

.cc-modal-panel {
    position: fixed;
    inset: 50%;
    transform: translate(-50%, -50%);
    width: min(780px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    z-index: 1001;
}

.cc-modal-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.cc-receipt-preview {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    overflow: auto;
}

.cc-receipt-preview table {
    width: 100% !important;
}

.cc-inline-message {
    margin-top: 12px;
    color: #991b1b;
    font-size: 13px;
    font-weight: 700;
}

.cc-selector-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.cc-selection-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    margin: 0;
    padding: 28px;
    border: 0;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.42);
    overflow: auto;
}

body.cc-app-body #box_mostra_sel_emp.cc-selection-panel,
body.cc-app-body #box_mostra_sel_conv.cc-selection-panel {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 3000 !important;
    margin: 0 !important;
    padding: 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(15, 23, 42, 0.42) !important;
    overflow: auto !important;
}

.cc-selection-panel table {
    width: 100%;
}

.cc-select-list {
    width: min(780px, calc(100vw - 40px));
    max-height: calc(100vh - 70px);
    display: grid;
    gap: 12px;
    margin: 20px auto;
    padding: 18px;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    overflow: auto;
}

body.cc-app-body #box_mostra_sel_emp .cc-select-list,
body.cc-app-body #box_mostra_sel_conv .cc-select-list {
    width: min(780px, calc(100vw - 40px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 70px) !important;
    margin: 20px auto !important;
    background: #fff !important;
    color: #1f2937 !important;
}

.cc-select-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cc-select-list-head h3 {
    margin: 0;
    color: #111827;
    font-size: 16px;
}

.cc-select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.cc-select-all input,
.cc-select-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0f766e;
}

.cc-select-table td:last-child,
.cc-select-table th:last-child {
    text-align: center;
}

.cc-report-shell {
    display: grid;
    gap: 16px;
}

.cc-report-shell .cc-section-header {
    align-items: center;
    margin-bottom: 0;
}

.cc-report-shell h2 {
    margin: 0;
    color: #111827;
    font-size: 22px;
}

.cc-print-area {
    display: grid;
    gap: 16px;
}

.cc-report-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.cc-report-summary > div {
    padding: 16px;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    background: #f8fafc;
}

.cc-report-summary strong {
    display: block;
    color: #111827;
    font-size: 20px;
}

.cc-report-card {
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.cc-report-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #d9e1ec;
    background: #f8fafc;
}

.cc-report-card-head h3 {
    margin: 0;
    color: #111827;
    font-size: 18px;
}

.cc-report-card-head strong {
    color: #0f766e;
    font-size: 18px;
    white-space: nowrap;
}

.cc-report-table tfoot td {
    background: #f8fafc;
    color: #111827;
    font-weight: 800;
}

.cc-report-total {
    padding: 14px 16px;
    border-radius: 8px;
    background: #0f766e;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-align: right;
}

.cc-sale-client {
    padding: 14px 16px;
    border-top: 1px solid #e2e8f0;
}

.cc-sale-client-head,
.cc-sale-coupon-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cc-sale-client-head {
    margin-bottom: 10px;
}

.cc-sale-client-head span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.cc-sale-client-head > strong,
.cc-sale-coupon-head strong {
    color: #0f766e;
    white-space: nowrap;
}

.cc-sale-coupon {
    margin-top: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.cc-sale-coupon-head {
    padding: 10px 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.cc-legacy-report {
    padding: 16px;
    overflow: auto;
}

.cc-legacy-report .relatorioTabela,
.cc-legacy-report .tabelaDetCupom {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    color: #1f2937;
}

.cc-legacy-report .relatorioTabela th,
.cc-legacy-report .relatorioTabela td,
.cc-legacy-report .tabelaDetCupom th,
.cc-legacy-report .tabelaDetCupom td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    font-size: 13px;
}

.cc-legacy-report .relatorioTabela thead th {
    background: #f8fafc;
    color: #111827;
    font-weight: 800;
}

.cc-legacy-report .rowDataCli1 td,
.cc-legacy-report .rowDataCli2 td {
    background: #f8fafc;
    color: #111827;
    font-weight: 800;
}

.cc-legacy-report .rowTotalGeral td,
.cc-legacy-report .tabelaDetCupom tfoot td {
    background: #f8fafc;
    color: #111827;
    font-weight: 800;
}

@media print {
    @page {
        margin: 10mm;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .cc-sidebar,
    .cc-topbar,
    .cc-report-shell > .cc-section-header,
    .cc-print-hidden {
        display: none !important;
    }

    body.cc-print-receipt .cc-report-shell > * {
        display: none !important;
    }

    body.cc-print-receipt .cc-print-hidden,
    body.cc-print-receipt #print_recibo_area {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    body.cc-print-receipt #print_recibo_area table {
        width: 100% !important;
    }

    .cc-app-shell,
    .cc-main,
    .cc-content {
        display: block !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: #fff !important;
        overflow: visible !important;
    }

    body.cc-app-body #box_cont.cc-content {
        min-height: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .cc-content > *:not(.cc-report-shell) {
        display: none !important;
    }

    .cc-print-area,
    .cc-report-shell {
        display: block !important;
        gap: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .cc-report-summary {
        display: table !important;
        width: 100% !important;
        margin: 0 0 4px !important;
        border-collapse: collapse !important;
    }

    .cc-report-summary > div {
        display: table-cell !important;
        width: 33.33% !important;
        padding: 0 8px 6px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #000 !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .cc-report-summary strong {
        color: #000 !important;
        font-size: 12px !important;
    }

    .cc-kicker {
        color: #000 !important;
        font-size: 9px !important;
    }

    .cc-report-card,
    .cc-legacy-report {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
        break-inside: auto !important;
        page-break-inside: auto !important;
        overflow: visible !important;
    }

    .cc-report-card *,
    .cc-legacy-report * {
        break-inside: auto !important;
        page-break-inside: auto !important;
    }

    .cc-report-card-head {
        padding: 4px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #000 !important;
        background: #fff !important;
    }

    .cc-report-card-head h3,
    .cc-report-card-head strong {
        color: #000 !important;
        font-size: 12px !important;
    }

    .cc-table th,
    .cc-table td,
    .cc-legacy-report .relatorioTabela th,
    .cc-legacy-report .relatorioTabela td,
    .cc-legacy-report .tabelaDetCupom th,
    .cc-legacy-report .tabelaDetCupom td {
        padding: 3px 4px !important;
        border-bottom: 1px solid #999 !important;
        color: #000 !important;
        background: #fff !important;
        font-size: 10px !important;
    }

    .cc-report-table tfoot td,
    .cc-legacy-report .rowTotalGeral td,
    .cc-legacy-report .tabelaDetCupom tfoot td {
        color: #000 !important;
        background: #fff !important;
        font-weight: 800 !important;
    }

    .cc-report-total {
        padding: 4px 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        color: #000 !important;
        font-size: 12px !important;
        text-align: right !important;
    }

    .cc-sale-client {
        padding: 4px 0 !important;
        border-top: 1px solid #000 !important;
    }

    .cc-sale-client-head,
    .cc-sale-coupon-head {
        padding: 2px 0 !important;
        background: #fff !important;
        color: #000 !important;
        font-size: 10px !important;
    }

    .cc-sale-client-head span,
    .cc-sale-client-head > strong,
    .cc-sale-coupon-head strong {
        color: #000 !important;
        font-size: 10px !important;
    }

    .cc-sale-coupon {
        margin-top: 2px !important;
        border: 0 !important;
        border-radius: 0 !important;
    }
}

.cc-history-reason {
    display: none;
    border-color: #facc15;
    background: #fffbeb;
}

.cc-history-reason .cc-section-header {
    align-items: center;
    margin-bottom: 12px;
}

.cc-history-reason h3 {
    margin: 0;
}

.cc-history-panel {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    width: min(720px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 48px));
    transform: translate(-50%, -50%);
    padding: 18px;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    overflow: auto;
}

.cc-history-panel > .cc-button {
    margin-bottom: 12px;
}

.cc-genealogy-tree {
    min-height: 310px;
    padding: 8px;
    color: #1f2937;
    font-size: 14px;
}

.cc-genealogy-list {
    list-style: none;
    margin: 4px 0 0 18px;
    padding: 0 0 0 12px;
    border-left: 1px solid #d9e1ec;
}

.cc-genealogy-item {
    margin: 4px 0;
    list-style: none;
}

.cc-tree-node {
    width: auto;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #1f2937;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.cc-tree-node:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.cc-tree-node.is-selected {
    border-color: #0f766e;
    background: #e0f2f1;
    color: #0f766e;
}

.cc-tree-root {
    margin-bottom: 4px;
}

.cc-tree-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

#modal-genealogy-form .inputtext,
#modal-genealogy-form input[type="text"] {
    width: 100%;
    min-height: 40px;
    margin-top: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 10px;
}

#modal-genealogy-form .inputtext-alert {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

@media (max-width: 860px) {
    .cc-app-shell {
        grid-template-columns: 1fr;
    }

    .cc-sidebar {
        position: static;
        height: auto;
    }

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

    .cc-dashboard-grid,
    .cc-module-grid,
    .cc-form-grid,
    .cc-card-feature {
        grid-template-columns: 1fr;
        display: grid;
    }

    .cc-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .cc-userbar {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .cc-form-actions {
        justify-content: stretch;
        display: grid;
    }

    .cc-form-actions .cc-button {
        width: 100%;
    }

    .cc-header-actions,
    .cc-header-actions .cc-button,
    .cc-search {
        width: 100%;
    }
}
