@import url(
    'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap'
);


/* ==========================================================
   RESET
========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {

    --primary: #5b5ce2;
    --primary-dark: #4849c7;
    --purple: #7c3aed;
    --green: #16a34a;
    --red: #dc2626;
    --orange: #d97706;
    --blue: #2563eb;

    --bg: #f5f6fb;
    --surface: #ffffff;
    --surface-soft: #f8f9fc;
    --surface-hover: #fafaff;
    --text: #182235;
    --text-2: #566176;
    --muted: #7a8497;
    --border: #e6e9f1;
    --border-soft: #edf0f5;

    --input-bg: #fafbfc;
    --input-focus-bg: #ffffff;

    --chip-primary: #eef0ff;
    --chip-green: #eaf8ef;
    --chip-purple: #f2eaff;
    --chip-red: #fff0f0;
    --chip-blue: #eef4ff;
    --chip-amber: #fff5e7;

    --gradient-brand: linear-gradient(135deg, #5b5ce2, #7c3aed);
    --gradient-soft: linear-gradient(135deg, #eef0ff, #f4edff);
    --gradient-header: linear-gradient(135deg, #ffffff, #f8f8ff);

    --shadow-sm: 0 4px 12px rgba(20, 30, 55, .05);
    --shadow: 0 10px 30px rgba(20, 30, 55, .05);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .2);

    --header-bg: rgba(255, 255, 255, .88);

    --radius: 18px;
}

[data-theme="dark"] {

    --bg: #0e1017;
    --surface: #161a23;
    --surface-soft: #1c202c;
    --surface-hover: #20242f;
    --surface-raised: #1a1e28;

    --text: #e9ecf4;
    --text-2: #aeb7c9;
    --muted: #8a94a8;
    --border: #262b39;
    --border-soft: #212633;

    --input-bg: #10141d;
    --input-focus-bg: #1e2330;

    --chip-primary: #232a4a;
    --chip-green: #1a2b20;
    --chip-purple: #2a1f3f;
    --chip-red: #301d22;
    --chip-blue: #1e2b4e;
    --chip-amber: #332818;

    --gradient-soft: linear-gradient(135deg, #20263a, #32234a);
    --gradient-header: linear-gradient(135deg, #1b1f2b, #1e2130);

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, .2);
    --shadow: 0 10px 30px rgba(0, 0, 0, .28);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .45);

    --header-bg: rgba(14, 16, 23, .82);
}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    font-family: "Inter", Arial, sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 0 0,
            rgba(91, 92, 226, .1),
            transparent 30%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(124, 58, 237, .06),
            transparent 30%
        ),
        var(--bg);

    transition: background .3s ease, color .3s ease;

}

body,
.card,
.client-card,
.history-card,
.stat-card,
.topbar,
.sale-product,
input,
select,
.money-field,
.percent-field,
.summary-box,
.export-card,
.modal-content,
.product-item,
.sync-indicator,
.toggle-track {
    transition:
        background-color .3s ease,
        border-color .3s ease,
        color .3s ease,
        box-shadow .25s ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


/* ==========================================================
   ANIMAÇÕES
========================================================== */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card,
.card,
.history-card,
.page-heading {
    animation: fadeUp .3s ease;
}


/* ==========================================================
   HEADER
========================================================== */

.topbar {

    height: 76px;

    padding: 0 42px;

    background: var(--header-bg);

    border-bottom: 1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: sticky;

    top: 0;

    z-index: 100;

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

}


.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    cursor: pointer;

}


.brand-icon {

    width: 43px;

    height: 43px;

    border-radius: 13px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    font-size: 20px;

    font-weight: 800;

    background: var(--gradient-brand);

    box-shadow: 0 7px 18px rgba(91, 92, 226, .28);

}


.brand-text h1 {

    font-size: 18px;

    letter-spacing: -.5px;

}


.brand-text span {

    display: block;

    color: var(--muted);

    font-size: 10px;

    margin-top: 3px;

}


.topbar-right {

    display: flex;

    align-items: center;

    gap: 14px;

}


.main-nav {

    display: flex;

    gap: 5px;

}


.nav-btn {

    height: 38px;

    padding: 0 14px;

    border: none;

    border-radius: 9px;

    background: transparent;

    color: var(--muted);

    font-family: inherit;

    font-weight: 600;

    font-size: 12px;

    cursor: pointer;

    transition: .2s;

}


.nav-btn:hover {

    background: var(--chip-primary);

    color: var(--primary);

}


.nav-btn.active {

    background: var(--chip-primary);

    color: var(--primary);

}


/* ==========================================================
   SÍNCRONIZAÇÃO
========================================================== */

.sync-indicator {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 6px 12px;

    border: 1px solid var(--border);

    border-radius: 999px;

    background: var(--surface-soft);

    font-size: 10px;

    font-weight: 600;

    color: var(--muted);

    white-space: nowrap;

}


.sync-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #f59e0b;

    box-shadow: 0 0 0 3px rgba(245, 158, 11, .15);

    animation: pulseSync 1.6s ease infinite;

}


.sync-indicator.ok {

    border-color: rgba(22, 163, 74, .25);

}


.sync-indicator.ok .sync-dot {

    background: var(--green);

    box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);

    animation: none;

}


.sync-indicator.ok .sync-text {

    color: var(--green);

}


.sync-indicator.is-off .sync-dot {

    background: #f59e0b;

    animation: pulseSync 1.6s ease infinite;

}


@keyframes pulseSync {

    0%, 100% { opacity: 1; }

    50% { opacity: .35; }

}


/* ==========================================================
   TEMA CLARO / ESCURO — BOTÃO
========================================================== */

.theme-toggle {

    background: none;

    border: none;

    padding: 0;

    cursor: pointer;

    border-radius: 999px;

    line-height: 0;

}


.toggle-track {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 70px;

    height: 34px;

    padding: 0 10px;

    border-radius: 999px;

    border: 1px solid var(--border);

    background: var(--surface-soft);

    cursor: pointer;

}


.theme-toggle:hover .toggle-track {

    border-color: var(--primary);

}


.toggle-icon {

    font-size: 13px;

    line-height: 1;

    color: var(--muted);

    transition: color .3s, transform .3s;

}


.toggle-sun {

    transform: translateX(-2px);

}


.toggle-moon {

    transform: translateX(2px);

}


[data-theme="dark"] .toggle-sun {

    color: #f6c453;

    transform: translateX(0);

}


[data-theme="dark"] .toggle-moon {

    color: var(--muted);

}


.toggle-knob {

    position: absolute;

    top: 3px;

    left: 3px;

    width: 26px;

    height: 26px;

    border-radius: 50%;

    background: var(--gradient-brand);

    box-shadow: 0 4px 10px rgba(91, 92, 226, .35);

    transition: transform .3s cubic-bezier(.4, 0, .2, 1);

}


[data-theme="dark"] .toggle-knob {

    transform: translateX(36px);

}


/* ==========================================================
   CONTAINER
========================================================== */

.page-container {

    width: min(1380px, calc(100% - 50px));

    margin: 30px auto 60px;

}


/* ==========================================================
   STATISTICS
========================================================== */

.stats-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    margin-bottom: 35px;

}


.stat-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 21px;

    display: flex;

    align-items: center;

    gap: 15px;

    box-shadow: var(--shadow);

    cursor: default;

}


.stat-card:hover {

    transform: translateY(-2px);

    box-shadow: var(--shadow-lg);

}


.stat-icon {

    width: 45px;

    height: 45px;

    border-radius: 13px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 15px;

    font-weight: 800;

}


.icon-blue {

    background: var(--chip-primary);

    color: var(--primary);

}


.icon-green {

    background: var(--chip-green);

    color: var(--green);

}


.icon-purple {

    background: var(--chip-purple);

    color: var(--purple);

}


.stat-content span {

    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-bottom: 5px;

}


.stat-content strong {

    font-size: 21px;

}


/* ==========================================================
   HEADINGS
========================================================== */

.page-heading {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 15px;

    margin-bottom: 24px;

}


.eyebrow {

    display: block;

    color: var(--primary);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.25px;

    margin-bottom: 6px;

}


.page-heading h2,
.section-header h2 {

    font-size: 27px;

    letter-spacing: -.8px;

}


.page-heading p {

    color: var(--muted);

    font-size: 12px;

    margin-top: 7px;

}


/* ==========================================================
   CARD
========================================================== */

.card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 24px;

    box-shadow: var(--shadow);

    margin-bottom: 20px;

}


.card-heading {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    margin-bottom: 21px;

}


.card-heading h3 {

    font-size: 16px;

}


.card-heading span {

    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-top: 5px;

}


/* ==========================================================
   FORMS
========================================================== */

.form-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;

}


.field {

    display: flex;

    flex-direction: column;

}


.field label {

    font-size: 11px;

    color: var(--text-2);

    font-weight: 700;

    margin-bottom: 7px;

}


.field small {

    color: var(--muted);

    font-size: 9px;

    margin-top: 5px;

}


input,
select {

    width: 100%;

    height: 44px;

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 0 12px;

    background: var(--input-bg);

    color: var(--text);

    font-family: inherit;

    font-size: 12px;

    outline: none;

    transition: .2s;

}


input:focus,
select:focus {

    background: var(--input-focus-bg);

    border-color: var(--primary);

    box-shadow: 0 0 0 4px rgba(91, 92, 226, .1);

}


[data-theme="dark"] input,
[data-theme="dark"] select {

    color-scheme: dark;

}


[data-theme="dark"] select option {

    background-color: var(--surface);

    color: var(--text);

}


.money-field,
.percent-field {

    height: 44px;

    display: flex;

    align-items: center;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--input-bg);

}


.money-field span,
.percent-field span {

    padding: 0 12px;

    color: var(--muted);

    font-size: 11px;

    font-weight: 700;

}


.money-field input,
.percent-field input {

    height: 100%;

    border: none;

    background: transparent;

    box-shadow: none;

}


/* ==========================================================
   SECTION
========================================================== */

.section-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin: 32px 0 17px;

}


/* ==========================================================
   CLIENTS
========================================================== */

.clients-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));

    gap: 18px;

}


.client-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 17px;

    overflow: hidden;

    box-shadow: var(--shadow);

}


.client-header {

    padding: 18px;

    background: var(--gradient-header);

    border-bottom: 1px solid var(--border);

}


.client-title-row {

    display: flex;

    align-items: center;

    gap: 9px;

}


.client-number {

    width: 29px;

    height: 29px;

    border-radius: 9px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--chip-primary);

    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

}


.client-title-row h3 {

    flex: 1;

    font-size: 14px;

}


.client-remove {

    width: 31px;

    height: 31px;

    border: none;

    border-radius: 8px;

    background: var(--chip-red);

    color: var(--red);

    cursor: pointer;

    font-size: 16px;

}


.client-fields {

    margin-top: 14px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 9px;

}


.client-body {

    padding: 17px;

}


/* ==========================================================
   PRODUCT ROW
========================================================== */

.sale-product {

    padding: 13px;

    background: var(--surface-soft);

    border: 1px solid var(--border-soft);

    border-radius: 12px;

    margin-bottom: 9px;

}


.product-name-row {

    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 10px;

}


.product-name-row span:first-child {

    font-size: 12px;

    font-weight: 700;

}


.product-line-total {

    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

}


.product-fields {

    display: grid;

    grid-template-columns: 75px minmax(130px, 1fr) 105px 95px 32px;

    gap: 7px;

    align-items: end;

}


.product-fields label {

    display: block;

    color: var(--muted);

    font-size: 9px;

    margin-bottom: 4px;

}


.product-fields input,
.product-fields select {

    height: 37px;

    font-size: 10px;

    padding: 0 7px;

}


.small-money {

    height: 37px;

}


.small-money span {

    padding-left: 8px;

    font-size: 9px;

}


.small-money input {

    padding-left: 5px;

}


.remove-product {

    height: 37px;

    width: 32px;

    border: none;

    border-radius: 8px;

    background: var(--chip-red);

    color: var(--red);

    cursor: pointer;

}


.product-interest-info {

    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-top: 7px;

    color: var(--muted);

    font-size: 9px;

}


.product-interest-info strong {

    color: var(--orange);

}


.add-product {

    width: 100%;

    height: 39px;

    border: 1px dashed rgba(91, 92, 226, .35);

    border-radius: 9px;

    background: var(--surface-hover);

    color: var(--primary);

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition: border-color .2s, background-color .3s;

}


.add-product:hover {

    border-color: var(--primary);

    background: var(--chip-primary);

}


/* ==========================================================
   CLIENT TOTAL
========================================================== */

.client-total {

    margin-top: 15px;

    padding-top: 14px;

    border-top: 1px dashed var(--border);

}


.total-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 11px;

    color: var(--muted);

    margin-bottom: 6px;

}


.total-row strong {

    color: var(--text);

}


.client-total-main {

    margin-top: 10px;

    padding: 12px;

    border-radius: 10px;

    background: var(--gradient-soft);

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.client-total-main span {

    font-size: 11px;

    font-weight: 700;

}


.client-total-main strong {

    color: var(--primary);

    font-size: 16px;

}


/* ==========================================================
   SUMMARY
========================================================== */

.summary-card {

    margin-top: 21px;

}


.summary-grid {

    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 9px;

}


.summary-box {

    padding: 14px;

    border: 1px solid var(--border-soft);

    border-radius: 11px;

    background: var(--surface-soft);

}


.summary-box span {

    display: block;

    color: var(--muted);

    font-size: 9px;

    margin-bottom: 5px;

}


.summary-box strong {

    font-size: 15px;

}


.summary-highlight {

    background: var(--gradient-soft);

    border-color: var(--border);

}


.summary-highlight strong {

    color: var(--primary);

    font-size: 18px;

}


.summary-actions {

    display: flex;

    justify-content: flex-end;

    gap: 9px;

    margin-top: 18px;

}


/* ==========================================================
   BUTTONS
========================================================== */

.btn {

    height: 43px;

    padding: 0 16px;

    border: none;

    border-radius: 10px;

    font-family: inherit;

    font-weight: 700;

    font-size: 12px;

    cursor: pointer;

    transition: transform .2s, box-shadow .2s, background-color .3s, border-color .3s, color .3s;

}


.btn:hover {

    transform: translateY(-1px);

}


.btn-primary {

    color: #fff;

    background: var(--gradient-brand);

    box-shadow: 0 7px 17px rgba(91, 92, 226, .25);

}


.btn-primary:hover {

    box-shadow: 0 10px 22px rgba(91, 92, 226, .35);

}


.btn-light {

    color: var(--text-2);

    background: var(--surface-soft);

    border: 1px solid var(--border);

}


.btn-big {

    height: 48px;

    padding: 0 23px;

}


/* ==========================================================
   PRODUCTS
========================================================== */

.products-layout {

    display: grid;

    grid-template-columns: 390px 1fr;

    gap: 20px;

}


.product-form {

    display: flex;

    flex-direction: column;

    gap: 15px;

}


.product-list {

    max-height: 550px;

    overflow-y: auto;

}


.product-item {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 12px;

    padding: 14px 0;

    border-bottom: 1px solid var(--border);

}


.product-item:last-child {

    border-bottom: none;

}


.product-item-info strong {

    display: block;

    font-size: 13px;

}


.product-item-info span {

    display: block;

    color: var(--muted);

    font-size: 10px;

    margin-top: 4px;

}


.product-item-value {

    text-align: right;

}


.product-item-value strong {

    display: block;

    color: var(--primary);

    font-size: 13px;

}


.product-item-value span {

    color: var(--orange);

    font-size: 10px;

}


.product-delete {

    width: 30px;

    height: 30px;

    border: none;

    border-radius: 8px;

    background: var(--chip-red);

    color: var(--red);

    cursor: pointer;

}


/* ==========================================================
   HISTÓRICO
========================================================== */

.search-box {

    margin-bottom: 18px;

}


.search-box input {

    max-width: 500px;

}


.history-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 16px;

    margin-bottom: 13px;

    overflow: hidden;

    box-shadow: var(--shadow);

}


.history-header {

    padding: 17px 20px;

    background: var(--gradient-header);

    border-bottom: 1px solid var(--border);

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

}


.history-code {

    font-size: 14px;

    font-weight: 800;

}


.history-date {

    display: block;

    color: var(--muted);

    font-size: 10px;

    margin-top: 4px;

}


.history-value {

    color: var(--primary);

    font-size: 18px;

    font-weight: 800;

}


.history-body {

    padding: 13px 20px;

}


.history-client {

    padding: 9px 0;

    border-bottom: 1px solid var(--border-soft);

}


.history-client:last-child {

    border-bottom: none;

}


.history-client strong {

    font-size: 12px;

}


.history-client span {

    display: block;

    color: var(--muted);

    font-size: 10px;

    margin-top: 4px;

}


.history-actions {

    padding: 12px 20px;

    border-top: 1px solid var(--border);

    display: flex;

    gap: 8px;

}


.history-actions button {

    height: 35px;

    border: none;

    border-radius: 8px;

    padding: 0 12px;

    font-family: inherit;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;

    transition: filter .2s, background-color .3s, color .3s;

}


.history-actions button:hover {

    filter: brightness(.96);

}


.btn-view {

    background: var(--chip-primary);

    color: var(--primary);

}


.btn-delete {

    background: var(--chip-red);

    color: var(--red);

}


/* ==========================================================
   MODAL
========================================================== */

.modal {

    position: fixed;

    inset: 0;

    background: rgba(16, 24, 40, .55);

    backdrop-filter: blur(6px);

    -webkit-backdrop-filter: blur(6px);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 18px;

    z-index: 500;

}


.modal-content {

    position: relative;

    width: min(470px, 100%);

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 29px;

    box-shadow: var(--shadow-lg);

    animation: fadeUp .25s ease;

}


.modal-close {

    position: absolute;

    top: 15px;

    right: 15px;

    width: 33px;

    height: 33px;

    border: none;

    border-radius: 50%;

    background: var(--surface-soft);

    color: var(--muted);

    font-size: 20px;

    cursor: pointer;

    transition: background-color .2s, color .2s;

}


.modal-close:hover {

    background: var(--chip-red);

    color: var(--red);

}


.modal-symbol {

    width: 44px;

    height: 44px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--chip-primary);

    color: var(--primary);

    font-weight: 800;

    margin-bottom: 14px;

}


.modal-content h2 {

    font-size: 21px;

    margin-bottom: 6px;

}


.modal-content > p {

    color: var(--muted);

    font-size: 11px;

    margin-bottom: 20px;

}


.export-grid {

    display: flex;

    flex-direction: column;

    gap: 9px;

}


.export-card {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 13px;

    text-align: left;

    padding: 13px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--surface);

    cursor: pointer;

    transition: .2s;

}


.export-card:hover {

    transform: translateY(-1px);

    border-color: var(--primary);

    background: var(--surface-hover);

}


.export-format {

    width: 45px;

    height: 45px;

    border-radius: 11px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 10px;

    font-weight: 800;

    flex-shrink: 0;

}


.export-card strong {

    display: block;

    font-size: 12px;

    margin-bottom: 4px;

}


.export-card span {

    color: var(--muted);

    font-size: 9px;

}


.export-pdf .export-format {

    background: var(--chip-red);

    color: var(--red);

}


.export-docx .export-format {

    background: var(--chip-blue);

    color: var(--blue);

}


.export-csv .export-format {

    background: var(--chip-green);

    color: var(--green);

}


/* ==========================================================
   EMPTY
========================================================== */

.empty {

    padding: 40px 20px;

    text-align: center;

    color: var(--muted);

    font-size: 12px;

}


/* ==========================================================
   HIDDEN
========================================================== */

.hidden {

    display: none !important;

}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1100px) {

    .summary-grid {

        grid-template-columns: repeat(3, 1fr);

    }

    .products-layout {

        grid-template-columns: 1fr;

    }

}


@media (max-width: 800px) {

    .topbar {

        padding: 0 14px;

    }

    .topbar-right {

        gap: 8px;

    }

    .main-nav {

        gap: 2px;

    }

    .nav-btn {

        padding: 0 9px;

        font-size: 10px;

    }

    .sync-text {

        display: none;

    }

    .sync-indicator {

        padding: 6px 9px;

    }

    .page-container {

        width: calc(100% - 22px);

        margin-top: 20px;

    }

    .stats-grid {

        grid-template-columns: 1fr;

        gap: 10px;

        margin-bottom: 23px;

    }

    .page-heading {

        align-items: flex-start;

        flex-direction: column;

    }

    .section-header {

        align-items: flex-start;

        flex-direction: column;

    }

    .section-header .btn {

        width: 100%;

    }

    .form-grid {

        grid-template-columns: 1fr;

    }

    .clients-grid {

        grid-template-columns: 1fr;

    }

    .summary-grid {

        grid-template-columns: repeat(2, 1fr);

    }

    .product-fields {

        grid-template-columns: 65px 1fr 95px 32px;

    }

    .product-fields > div:nth-child(4) {

        grid-column: 2 / 4;

    }

    .summary-actions {

        flex-direction: column;

    }

    .summary-actions button {

        width: 100%;

    }

}


@media (max-width: 480px) {

    .brand-text span {

        display: none;

    }

    .brand-text h1 {

        font-size: 15px;

    }

    .brand-icon {

        width: 37px;

        height: 37px;

    }

    .nav-btn {

        padding: 0 6px;

        font-size: 9px;

    }

    .card {

        padding: 17px;

    }

    .client-fields {

        grid-template-columns: 1fr;

    }

    .product-fields {

        grid-template-columns: 60px 1fr 32px;

    }

    .product-fields > div:nth-child(4) {

        grid-column: 2;

    }

    .summary-grid {

        grid-template-columns: 1fr 1fr;

    }

    .history-header {

        align-items: flex-start;

        flex-direction: column;

    }

    .history-actions {

        flex-direction: column;

    }

    .history-actions button {

        width: 100%;

    }

}