:root {
--rosa: #D9A0AB;
--taupe: #BFA79F;
--cinza: #E9E3E3;
--rosa-suave: #CCA09C;
--rosa-escuro: #B9808C;
--fundo: #FFFAFA;

--ink: #2B2422;
--texto: #514747;
--texto-suave: #837575;

--branco: #FFFFFF;

--border: #E8E1E1;

--shadow: 0 3px 18px rgba(81, 71, 71, 0.045);


}

/* =========================
RESET
========================= */

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

body {
font-family: "Work Sans", "Segoe UI", Arial, sans-serif;


background: var(--fundo);

color: var(--texto);

font-size: 14px;


}

a {
text-decoration: none;


color: inherit;


}

/* =========================
LAYOUT
========================= */

.layout {
min-height: 100vh;


display: flex;


}

/* =========================
SIDEBAR
========================= */

.sidebar {
position: fixed;


top: 0;
left: 0;

width: 225px;

height: 100vh;

background: var(--taupe);

padding: 28px 14px;

display: flex;

flex-direction: column;


}

/* MARCA */

.brand {
    padding: 0 13px;
    margin-bottom: 38px;
}

.brand-name {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 27px;
    color: var(--branco);
    letter-spacing: 0.3px;
}

.brand-subtitle {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
    letter-spacing: 0.3px;
}

/* =========================
NAVEGAÇÃO
========================= */

.navigation {
display: flex;


flex-direction: column;

gap: 4px;


}

.nav-link {
display: flex;


align-items: center;

gap: 12px;

padding: 11px 13px;

border-radius: 6px;

color: rgba(255, 255, 255, 0.88);

font-size: 13px;

transition:
    background 0.18s ease,
    color 0.18s ease;


}

.nav-link:hover {
background: rgba(255, 255, 255, 0.11);
}

.nav-link.active {
background: var(--branco);


color: var(--texto);

box-shadow: 0 3px 12px rgba(81, 71, 71, 0.07);


}

.nav-icon {
width: 19px;


text-align: center;

font-size: 15px;

opacity: 0.8;


}

/* =========================
LOGOUT
========================= */

.sidebar-bottom {
margin-top: auto;


padding-top: 15px;

border-top: 1px solid rgba(255, 255, 255, 0.15);


}

.logout-link {
display: flex;


align-items: center;

gap: 12px;

padding: 11px 13px;

color: rgba(255, 255, 255, 0.78);

font-size: 13px;

border-radius: 6px;

transition: 0.18s ease;


}

.logout-link:hover {
background: rgba(255, 255, 255, 0.11);


color: var(--branco);


}

/* =========================
MAIN
========================= */

.main {
width: calc(100% - 225px);


margin-left: 225px;

min-height: 100vh;


}

/* =========================
TOPBAR
========================= */

.topbar {
height: 82px;


padding: 0 38px;

display: flex;

align-items: center;

justify-content: space-between;

background: var(--branco);

border-bottom: 1px solid var(--border);


}

.page-title {
display: flex;


flex-direction: column;

gap: 2px;


}

.eyebrow {
color: var(--rosa-suave);


font-size: 10px;

text-transform: uppercase;

letter-spacing: 1px;


}

.page-title h1 {
font-family: "Fraunces", Georgia, serif;

font-size: 22px;


font-weight: 500;

color: var(--ink);

}

/* UTILIZADOR */

.user {
display: flex;


align-items: center;

gap: 10px;


}

.user-avatar {
width: 36px;


height: 36px;

border-radius: 50%;

background: var(--cinza);

display: flex;

align-items: center;

justify-content: center;

font-size: 12px;

font-weight: 600;


}

.user-info {
display: flex;


flex-direction: column;

gap: 2px;


}

.user-info strong {
font-size: 12px;


font-weight: 600;


}

.user-info span {
color: var(--texto-suave);


font-size: 10px;


}

/* =========================
CONTEÚDO
========================= */

.content {
max-width: 1250px;


padding: 32px 38px 55px;

margin: auto;


}

/* =========================
WELCOME
========================= */

.welcome {
display: flex;


align-items: flex-end;

justify-content: space-between;

margin-bottom: 25px;


}

.welcome h2 {
font-family: "Fraunces", Georgia, serif;

font-size: 22px;


font-weight: 500;

color: var(--ink);

margin-bottom: 5px;


}

.welcome p {
color: var(--texto-suave);


font-size: 12px;


}

/* BOTÃO */

.primary-button {
padding: 9px 15px;


border-radius: 5px;

background: var(--rosa-suave);

color: var(--branco);

font-size: 12px;

transition: 0.18s ease;


}

.primary-button:hover {
background: var(--rosa);


transform: translateY(-1px);


}

/* =========================
ESTATÍSTICAS
========================= */

.statistics {
display: grid;


grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

gap: 15px;

margin-bottom: 24px;


}

.stat {
background: var(--branco);


border: 1px solid var(--border);

border-radius: 7px;

padding: 18px;

box-shadow: var(--shadow);


}

.stat-top {
display: flex;


align-items: center;

justify-content: space-between;

color: var(--texto-suave);

font-size: 11px;

margin-bottom: 15px;


}

.stat-icon {
width: 27px;


height: 27px;

display: flex;

align-items: center;

justify-content: center;

border-radius: 4px;

background: var(--cinza);

color: var(--texto);

font-size: 12px;


}

.stat:first-child .stat-icon {
background: rgba(217, 160, 171, 0.17);
}

.stat:nth-child(2) .stat-icon {
background: rgba(204, 160, 156, 0.17);
}

.stat:nth-child(3) .stat-icon {
background: rgba(191, 167, 159, 0.18);
}

.stat strong {
display: block;

font-family: "Fraunces", Georgia, serif;

font-size: 26px;

font-weight: 500;

color: var(--ink);

margin-bottom: 4px;


}

.stat small {
color: var(--texto-suave);


font-size: 10px;


}

/* =========================
CARTÃO
========================= */

.content-card {
background: var(--branco);


border: 1px solid var(--border);

border-radius: 8px;

box-shadow: var(--shadow);

overflow: hidden;


}

/* HEADER */

.section-header {
padding: 20px 23px;


display: flex;

align-items: center;

justify-content: space-between;

border-bottom: 1px solid var(--border);


}

.section-header h2 {
font-size: 15px;


font-weight: 600;

margin-bottom: 4px;


}

.section-header p {
color: var(--texto-suave);


font-size: 10px;


}

.view-all {
color: var(--rosa-suave);


font-size: 11px;

font-weight: 500;


}

.view-all:hover {
color: var(--rosa);
}

/* =========================
TABELA
========================= */

.table-wrapper {
width: 100%;


overflow-x: auto;


}

table {
width: 100%;


border-collapse: collapse;


}

thead {
background: #FCFAFA;
}

th {
padding: 12px 23px;


text-align: left;

color: var(--texto-suave);

font-size: 9px;

text-transform: uppercase;

letter-spacing: 0.6px;

font-weight: 600;


}

td {
padding: 15px 23px;


border-top: 1px solid var(--border);

font-size: 11px;


}

tbody tr {
transition: background 0.15s ease;
}

tbody tr:hover {
background: #FEFCFC;
}

.order-number {
color: var(--texto);
}

/* =========================
ESTADOS
========================= */

.status {
display: inline-block;


padding: 5px 9px;

border-radius: 20px;

font-size: 9px;

font-weight: 500;

background: var(--cinza);

color: var(--texto);


}

.status-nova {
background: rgba(217, 160, 171, 0.16);
}

.status-confirmada {
background: rgba(204, 160, 156, 0.16);
}

.status-producao {
background: rgba(191, 167, 159, 0.18);
}

.status-pronta {
background: rgba(217, 160, 171, 0.11);
}

.status-entregue {
background: #E9E3E3;
}

.status-cancelada {
background: #E9E3E3;


opacity: 0.7;


}

/* =========================
VAZIO
========================= */

.empty {
padding: 55px 20px;


text-align: center;


}

.empty-icon {
width: 40px;


height: 40px;

margin: 0 auto 12px;

border-radius: 50%;

background: var(--cinza);

display: flex;

align-items: center;

justify-content: center;

color: var(--texto-suave);


}

.empty h3 {
font-size: 14px;


font-weight: 500;

margin-bottom: 5px;


}

.empty p {
color: var(--texto-suave);


font-size: 11px;


}

/* =========================
RESPONSIVO
========================= */

@media (max-width: 1050px) {


.statistics {
    grid-template-columns: repeat(2, 1fr);
}


}

@media (max-width: 750px) {


.sidebar {
    width: 65px;

    padding: 25px 8px;
}


.brand {
    padding: 0;

    text-align: center;
}


.brand-name {
    font-size: 17px;
}


.brand-subtitle {
    display: none;
}


.nav-link span:not(.nav-icon),
.logout-link {
    font-size: 0;
}


.nav-link {
    justify-content: center;

    padding: 12px 5px;
}


.nav-icon {
    font-size: 15px;
}


.main {
    margin-left: 65px;

    width: calc(100% - 65px);
}


.topbar {
    padding: 0 20px;
}


.user-info {
    display: none;
}


.content {
    padding: 25px 18px 40px;
}


.welcome {
    align-items: flex-start;

    gap: 15px;

    flex-direction: column;
}


.statistics {
    grid-template-columns: 1fr;
}


}

/* =========================
LOGIN
========================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(150deg, #FDF3F4 0%, var(--fundo) 55%);
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 9px;
    box-shadow: 0 12px 40px rgba(81, 71, 71, 0.08);
    padding: 38px 32px;
}

.login-brand {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo-img {
    display: block;
    height: 52px;
    width: auto;
    margin: 0 auto 8px;
}

.login-brand span {
    color: var(--texto-suave);
    font-size: 11px;
    letter-spacing: 0.4px;
}

.login-form .form-group {
    margin-bottom: 18px;
}

.login-submit {
    width: 100%;
    border: none;
    padding: 12px;
    border-radius: 6px;
    background: var(--rosa-escuro);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: 0.18s ease;
}

.login-submit:hover {
    background: var(--rosa);
}

/* =========================
PÁGINA (container comum)
========================= */

.page-wrap {
    max-width: 1250px;
    margin: auto;
}

.page-wrap.medium {
    max-width: 1100px;
}

.page-wrap.narrow {
    max-width: 900px;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.page-header h2 {
    font-family: "Fraunces", Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 5px;
}

.page-header p {
    color: var(--texto-suave);
    font-size: 12px;
}

.form-header {
    margin-bottom: 25px;
}

.form-header h2 {
    font-family: "Fraunces", Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 5px;
}

.form-header p {
    color: var(--texto-suave);
    font-size: 12px;
}

.back {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--texto-suave);
    font-size: 12px;
}

.back:hover {
    color: var(--rosa);
}

/* =========================
BARRA DE FERRAMENTAS / FILTROS
========================= */

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.toolbar .search {
    flex: 1;
    min-width: 220px;
}

.toolbar input[type="text"],
.toolbar input[type="search"],
.toolbar select {
    width: 100%;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0 13px;
    background: white;
    color: var(--texto);
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

.toolbar select {
    width: auto;
}

.toolbar input:focus,
.toolbar select:focus {
    border-color: var(--rosa-suave);
}

.filter-button {
    height: 38px;
    padding: 0 18px;
    border: none;
    border-radius: 5px;
    background: var(--rosa-suave);
    color: white;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

.filter-button:hover {
    background: var(--rosa);
}

@media (max-width: 700px) {

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .primary-button {
        width: 100%;
        text-align: center;
    }

    .toolbar {
        flex-direction: column;
    }

}

/* =========================
BOTÕES
========================= */

.secondary-button,
.cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border-radius: 5px;
    background: var(--cinza);
    color: var(--texto);
    font-size: 12px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.secondary-button:hover,
.cancel-button:hover {
    background: #ded7d7;
}

.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 17px;
    border-radius: 5px;
    border: none;
    background: var(--rosa-escuro);
    color: white;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

.danger-button:hover {
    background: #a56d79;
}

.save-button {
    border: none;
    padding: 9px 17px;
    border-radius: 5px;
    background: var(--rosa-suave);
    color: white;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

.save-button:hover {
    background: var(--rosa);
}

/* =========================
MENSAGENS FLASH
========================= */

.flash {
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 18px;
}

.flash-sucesso {
    background: #E6F0E9;
    color: #3F6B4E;
}

.flash-erro,
.error-message {
    background: #F4E7E7;
    color: #795858;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 5px;
    font-size: 11px;
}

/* =========================
FORMULÁRIOS (cartão)
========================= */

.form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-section {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 11px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 10px 11px;
    background: white;
    color: var(--texto);
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

.form-group input,
.form-group select {
    height: 40px;
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--rosa-suave);
}

.help {
    color: var(--texto-suave);
    font-size: 10px;
}

.image-upload {
    border: 1px dashed var(--rosa-suave);
    border-radius: 7px;
    padding: 25px;
    text-align: center;
    background: #FFFCFC;
}

.image-upload input {
    border: none;
    padding: 0;
    height: auto;
}

.image-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.current-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 7px;
    border: 1px solid var(--border);
}

.no-image {
    width: 100px;
    height: 100px;
    border-radius: 7px;
    background: var(--cinza);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--texto-suave);
    font-size: 11px;
}

.image-input {
    flex: 1;
}

.active-option {
    display: flex;
    align-items: center;
    gap: 9px;
}

.active-option input {
    width: auto;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 24px;
    background: #FCFAFA;
    flex-wrap: wrap;
}

@media (max-width: 700px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .image-area {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-footer {
        flex-direction: column;
    }

    .form-footer > * {
        width: 100%;
        text-align: center;
    }

}

/* =========================
TABELA — PRODUTO / ENTIDADE COM IMAGEM
========================= */

.entity-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.entity-thumb {
    width: 45px;
    height: 45px;
    border-radius: 5px;
    background: var(--cinza);
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.entity-name {
    font-weight: 600;
}

.mini-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cinza);
    color: var(--texto);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.entity-meta {
    color: var(--texto-suave);
    font-size: 11px;
}

.stock {
    font-size: 11px;
}

.stock.low {
    color: var(--rosa);
    font-weight: 600;
}

.pill {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 9px;
}

.pill.active {
    background: rgba(217, 160, 171, 0.15);
    color: var(--texto);
}

.pill.inactive {
    background: var(--cinza);
    color: var(--texto-suave);
}

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

.action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border-radius: 4px;
    background: var(--cinza);
    color: var(--texto);
    font-size: 10px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: 0.18s ease;
}

.action:hover {
    background: var(--rosa);
    color: white;
}

.action.delete:hover {
    background: var(--rosa-escuro);
}

.order-link {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 4px;
    background: var(--cinza);
    font-size: 11px;
}

.order-link:hover {
    background: var(--rosa);
    color: white;
}

/* =========================
DETALHE (encomenda / cliente)
========================= */

.order-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.order-title h2 {
    font-family: "Fraunces", Georgia, serif;
    font-size: 23px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 5px;
}

.order-title p {
    color: var(--texto-suave);
    font-size: 12px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.detail-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.detail-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.detail-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.detail-body {
    padding: 20px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.info-label {
    color: var(--texto-suave);
    font-size: 10px;
}

.info-value {
    font-size: 12px;
}

.product {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.product:last-child {
    border-bottom: none;
}

.product-image {
    width: 55px;
    height: 55px;
    border-radius: 6px;
    background: var(--cinza);
    object-fit: cover;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
}

.product-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-quantity {
    color: var(--texto-suave);
    font-size: 10px;
}

.product-price {
    font-size: 12px;
    font-weight: 600;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    margin-top: 5px;
    border-top: 1px solid var(--border);
}

.order-total span {
    color: var(--texto-suave);
    font-size: 12px;
}

.order-total strong {
    font-size: 19px;
}

.status-form select {
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0 10px;
    font-size: 11px;
    font-family: inherit;
    color: var(--texto);
    background: white;
}

.notes {
    margin-top: 20px;
}

.notes p {
    color: var(--texto-suave);
    font-size: 12px;
    line-height: 1.6;
}

.empty-products {
    padding: 30px 0;
    color: var(--texto-suave);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 800px) {

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .order-title {
        align-items: flex-start;
        flex-direction: column;
    }

}

/* =========================
MODAL
========================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(81, 71, 71, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: white;
    border-radius: 8px;
    padding: 26px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(81, 71, 71, 0.2);
    transform: translateY(8px);
    transition: transform 0.18s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal p {
    color: var(--texto-suave);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 22px;
}

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

/* =========================
NOVA ENCOMENDA — LINHAS DE PRODUTO
========================= */

.order-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-line {
    display: grid;
    grid-template-columns: 2fr 120px 90px 100px 32px;
    gap: 10px;
    align-items: center;
}

.order-line select,
.order-line input {
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0 10px;
    font-family: inherit;
    font-size: 12px;
    color: var(--texto);
    background: white;
    outline: none;
    width: 100%;
}

.order-line select:focus,
.order-line input:focus {
    border-color: var(--rosa-suave);
}

.line-subtotal {
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    padding-right: 6px;
}

.line-remove {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    background: var(--cinza);
    color: var(--texto);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.line-remove:hover {
    background: var(--rosa-escuro);
    color: white;
}

.add-line-button {
    align-self: flex-start;
    margin-top: 4px;
    padding: 8px 14px;
    border: 1px dashed var(--rosa-suave);
    border-radius: 5px;
    background: transparent;
    color: var(--rosa-escuro);
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
}

.add-line-button:hover {
    background: #FFFCFC;
}

.order-summary {
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
    margin-top: 12px;
    border-top: 1px solid var(--border);
    gap: 10px;
    align-items: baseline;
}

.order-summary span {
    color: var(--texto-suave);
    font-size: 12px;
}

.order-summary strong {
    font-size: 20px;
}

.field-error {
    color: #a55c6c;
    font-size: 10px;
}

@media (max-width: 700px) {

    .order-line {
        grid-template-columns: 1fr 1fr;
    }

    .line-subtotal {
        text-align: left;
        padding-right: 0;
    }

}

/* =========================
CALENDÁRIO
========================= */

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-nav a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: var(--cinza);
}

.calendar-nav a:hover {
    background: var(--rosa);
    color: white;
}

.calendar-nav strong {
    font-size: 14px;
    min-width: 150px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-weekday {
    background: #FCFAFA;
    padding: 10px;
    text-align: center;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--texto-suave);
    font-weight: 600;
}

.calendar-day {
    background: white;
    min-height: 100px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calendar-day.outside {
    background: #FBF9F9;
}

.calendar-day.today {
    background: #FFF6F6;
}

.calendar-day-number {
    font-size: 11px;
    color: var(--texto-suave);
}

.calendar-day.today .calendar-day-number {
    color: var(--rosa-escuro);
    font-weight: 700;
}

.calendar-event {
    display: block;
    padding: 4px 6px;
    border-radius: 4px;
    background: rgba(217, 160, 171, 0.18);
    color: var(--texto);
    font-size: 9.5px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event:hover {
    background: var(--rosa);
    color: white;
}

.calendar-event.cancelada {
    opacity: 0.55;
    text-decoration: line-through;
}

.calendar-event.entregue {
    background: #E9E3E3;
}

.calendar-legend {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
    font-size: 10px;
    color: var(--texto-suave);
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    background: rgba(217, 160, 171, 0.6);
}

@media (max-width: 750px) {

    .calendar-grid {
        grid-template-columns: repeat(7, minmax(36px, 1fr));
    }

    .calendar-day {
        min-height: 70px;
        padding: 5px;
        font-size: 10px;
    }

    .calendar-event {
        font-size: 8.5px;
    }

}
