/* AdryNutri PRO — painel nutricionista (mockup) */
:root {
    --pro-green: #1B3022;
    --pro-green-mid: #2D4F1E;
    --pro-green-soft: #E8F0E4;
    --pro-green-light: #d4e4cc;
    --pro-bg: #f4f5f3;
    --pro-card: #ffffff;
    --pro-border: #e8ebe6;
    --pro-text: #1a1a1a;
    --pro-muted: #6b7280;
    --pro-sidebar-w: 248px;
    --pro-radius: 12px;
    --pro-shadow: 0 1px 3px rgba(27, 48, 34, 0.06), 0 4px 16px rgba(27, 48, 34, 0.04);
}

body.pro-app {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--pro-bg);
    color: var(--pro-text);
    margin: 0;
    font-size: 14px;
}

.pro-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar branca */
.pro-sidebar {
    width: var(--pro-sidebar-w);
    background: var(--pro-card);
    border-right: 1px solid var(--pro-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow: hidden;
}

.pro-sidebar-brand {
    padding: 16px 14px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--pro-border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.pro-sidebar-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: #7a9468;
}

.pro-sidebar-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pro-sidebar-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pro-sidebar-logo-fallback svg {
    width: 30px;
    height: 30px;
    display: block;
}

.pro-sidebar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    line-height: 1.08;
}

.pro-sidebar-brand-line {
    display: block;
    font-weight: 800;
    font-size: 15px;
    color: #2a4a22;
    letter-spacing: -0.01em;
}

.pro-badge-pro {
    font-size: 10px;
    font-weight: 700;
    background: #3b82f6;
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    vertical-align: super;
    margin-left: 2px;
}

.pro-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 8px 10px;
    scrollbar-width: thin;
}

.pro-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--pro-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 1px;
    transition: background 0.15s, color 0.15s;
    line-height: 1.25;
}

.pro-nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.75;
}

.pro-nav-item:hover {
    background: var(--pro-bg);
    color: var(--pro-green);
}

.pro-nav-item.active {
    background: var(--pro-green-soft);
    color: var(--pro-green);
    font-weight: 600;
}

.pro-nav-item.active svg {
    opacity: 1;
}

.pro-sidebar-user {
    padding: 12px 14px;
    border-top: 1px solid var(--pro-border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.pro-sidebar-avatar-btn {
    position: relative;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--pro-green-soft);
    color: var(--pro-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s;
}

.pro-sidebar-avatar-btn:hover {
    box-shadow: 0 0 0 2px var(--pro-green-soft), 0 0 0 3px var(--pro-green);
}

.pro-sidebar-avatar-btn:focus-visible {
    outline: 2px solid var(--pro-green);
    outline-offset: 2px;
}

.pro-sidebar-avatar-btn.is-uploading,
.pro-sidebar-user.is-uploading .pro-sidebar-avatar-btn {
    opacity: 0.65;
    cursor: wait;
}

.pro-sidebar-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pro-sidebar-avatar-initials {
    line-height: 1;
}

.pro-sidebar-avatar-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}

.pro-sidebar-avatar-btn:hover .pro-sidebar-avatar-hint {
    opacity: 1;
}

.pro-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--pro-green-soft);
    color: var(--pro-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
}

.pro-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-sidebar-user-meta {
    min-width: 0;
    flex: 1;
}

.pro-sidebar-user strong,
.pro-sidebar-user-meta strong {
    font-size: 12px;
    font-weight: 600;
    color: var(--pro-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.pro-sidebar-user small,
.pro-sidebar-user-meta small {
    display: block;
    color: var(--pro-muted);
    font-size: 11px;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main */
.pro-main {
    flex: 1;
    margin-left: var(--pro-sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pro-topbar {
    background: var(--pro-card);
    border-bottom: 1px solid var(--pro-border);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 64px;
    overflow: visible;
}

.pro-topbar h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: var(--pro-text);
}

.pro-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    overflow: visible;
}

.pro-date-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--pro-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--pro-muted);
    background: #fff;
}

.pro-icon-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border: 1px solid var(--pro-border);
    border-radius: 10px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    color: var(--pro-muted);
    text-decoration: none;
    flex-shrink: 0;
    overflow: visible;
    box-sizing: border-box;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pro-icon-btn:hover {
    background: var(--pro-green-soft);
    color: var(--pro-green);
    border-color: var(--pro-green-light);
}

.pro-icon-btn svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    pointer-events: none;
}

.pro-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    border: 2px solid var(--pro-card);
    box-sizing: border-box;
    pointer-events: none;
    z-index: 1;
}

.pro-notifications-wrap {
    position: relative;
}

.pro-notifications-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(380px, calc(100vw - 32px));
    max-height: 420px;
    background: #fff;
    border: 1px solid var(--pro-border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    z-index: 120;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pro-notifications-dropdown[hidden] {
    display: none !important;
}

.pro-notifications-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pro-border);
    font-size: 14px;
}

.pro-notif-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--pro-green);
    background: var(--pro-green-soft);
    padding: 2px 8px;
    border-radius: 999px;
}

.pro-notifications-list {
    overflow-y: auto;
    max-height: 320px;
    padding: 8px;
}

.pro-notifications-ft {
    padding: 10px 16px;
    border-top: 1px solid var(--pro-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.pro-notifications-ft a {
    font-size: 13px;
    font-weight: 600;
    color: var(--pro-green);
    text-decoration: none;
}

.pro-notifications-ft a:hover {
    text-decoration: underline;
}

.pro-notifications-clear-form {
    margin: 0;
    display: inline;
}

.pro-notifications-clear {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--pro-muted);
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.pro-notifications-clear:hover {
    color: #dc2626;
}

.pro-notif-empty {
    margin: 0;
    padding: 24px 16px;
    text-align: center;
    color: var(--pro-muted);
    font-size: 13px;
}

.pro-notif-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.15s;
}

.pro-notif-item:hover {
    background: var(--pro-green-soft);
}

.pro-notif-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.pro-notif-body {
    flex: 1;
    min-width: 0;
}

.pro-notif-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--pro-text);
    margin-bottom: 2px;
}

.pro-notif-msg {
    display: block;
    font-size: 12px;
    color: var(--pro-muted);
    line-height: 1.4;
}

.pro-notif-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pro-green);
    text-decoration: none;
}

.pro-notif-link:hover {
    text-decoration: underline;
}

.pro-notif-preview {
    margin: 10px 0 0;
    padding: 10px 12px;
    background: #f8faf8;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--pro-text);
    white-space: pre-line;
}

.pro-notif-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pro-notifications-page .pro-notif-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--pro-border);
    border-radius: 0;
}

.pro-notifications-page .pro-notif-item:last-child {
    border-bottom: none;
}

.pro-content {
    padding: 24px 28px 40px;
    flex: 1;
}

.pro-greeting {
    margin-bottom: 24px;
}

.pro-greeting h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.pro-greeting p {
    margin: 0;
    color: var(--pro-muted);
    font-size: 14px;
}

/* Cards */
.pro-card {
    background: var(--pro-card);
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius);
    box-shadow: var(--pro-shadow);
}

.pro-card-hd {
    padding: 16px 20px;
    border-bottom: 1px solid var(--pro-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pro-card-hd h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.pro-card-bd {
    padding: 16px 20px;
}

/* Stats */
.pro-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.pro-stat {
    background: var(--pro-card);
    border: 1px solid var(--pro-border);
    border-radius: var(--pro-radius);
    padding: 18px 20px;
    box-shadow: var(--pro-shadow);
}

.pro-stat label {
    display: block;
    font-size: 13px;
    color: var(--pro-muted);
    margin-bottom: 8px;
}

.pro-stat .val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--pro-text);
    line-height: 1;
}

.pro-stat .chg {
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    margin-top: 8px;
}

/* Grid */
.pro-grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    margin-bottom: 16px;
}

.pro-grid-2eq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Table */
.pro-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pro-table th {
    text-align: left;
    font-weight: 600;
    color: var(--pro-muted);
    font-size: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--pro-border);
}

.pro-table td {
    padding: 12px;
    border-bottom: 1px solid var(--pro-border);
}

/* Pills */
.pro-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.pro-pill-success {
    background: var(--pro-green-soft);
    color: var(--pro-green-mid);
}

.pro-pill-warning {
    background: #fef3c7;
    color: #b45309;
}

.pro-pill-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.pro-app .form-control {
    font-family: inherit;
    font-size: 14px;
}

.pro-app input[type="file"].form-control {
    padding: 0;
    border: none;
    background: transparent;
}

/* File upload */
.pro-file-upload {
    display: block;
    cursor: pointer;
}

.pro-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pro-file-upload-zone {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px dashed var(--pro-border);
    border-radius: 12px;
    background: linear-gradient(180deg, #fafbf9 0%, #f4f6f3 100%);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.pro-file-upload:hover .pro-file-upload-zone,
.pro-file-upload:focus-within .pro-file-upload-zone,
.pro-file-upload.is-dragover .pro-file-upload-zone {
    border-color: var(--pro-green-mid);
    background: var(--pro-green-soft);
    box-shadow: 0 0 0 3px rgba(45, 79, 30, 0.08);
}

.pro-file-upload-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--pro-border);
    color: var(--pro-green-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pro-file-upload-icon svg {
    width: 22px;
    height: 22px;
}

.pro-file-upload-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.pro-file-upload-copy strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--pro-text);
}

.pro-file-upload-copy span {
    font-size: 12px;
    color: var(--pro-muted);
}

.pro-file-upload-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--pro-green);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}

.pro-file-upload:hover .pro-file-upload-btn,
.pro-file-upload:focus-within .pro-file-upload-btn {
    background: var(--pro-green-mid);
}

.pro-file-upload-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding: 0 2px;
}

.pro-file-upload-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--pro-text);
    word-break: break-word;
}

.pro-file-upload.has-file .pro-file-upload-name {
    color: var(--pro-green-mid);
}

.pro-file-upload-hint {
    font-size: 12px;
    color: var(--pro-muted);
}

.pro-media-preview {
    margin-bottom: 12px;
    padding: 14px;
    background: #f8faf6;
    border-radius: 10px;
    border: 1px solid var(--pro-border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
}

.pro-media-preview img {
    display: block;
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.pro-media-preview--avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.pro-media-preview--favicon {
    min-height: 64px;
}

.pro-media-preview--favicon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.pro-check-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--pro-muted);
    margin-bottom: 12px;
    cursor: pointer;
}

.pro-check-inline input {
    width: 16px;
    height: 16px;
    accent-color: var(--pro-green-mid);
}

.pro-app .modal.active {
    display: flex;
}

/* Alerts */
.pro-alert-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pro-border);
    font-size: 13px;
}

.pro-alert-item:last-child {
    border-bottom: none;
}

.pro-alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.pro-alert-icon.warn {
    background: #fef2f2;
}

.pro-alert-icon.info {
    background: #fff7ed;
}

/* Buttons */
.pro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.pro-btn-primary {
    background: var(--pro-green);
    color: #fff;
}

.pro-btn-primary:hover {
    background: var(--pro-green-mid);
    color: #fff;
}

.pro-btn-outline {
    background: #fff;
    color: var(--pro-text);
    border: 1px solid var(--pro-border);
}

.pro-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.pro-link {
    color: var(--pro-green-mid);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.pro-link:hover {
    text-decoration: underline;
}

/* Chart */
.pro-chart-wrap {
    height: 220px;
    position: relative;
}

/* Patient header */
.pro-patient-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pro-patient-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pro-patient-info .pro-avatar {
    width: 72px;
    height: 72px;
    font-size: 24px;
    overflow: hidden;
}

.pro-patient-info .pro-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pro-patient-info h2 {
    margin: 0 0 4px;
    font-size: 1.35rem;
}

.pro-patient-info p {
    margin: 0;
    color: var(--pro-muted);
    font-size: 14px;
}

.pro-back {
    color: var(--pro-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

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

/* Patient prontuário — abas + voltar */
.pro-patient-tabs-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--pro-border);
    flex-wrap: wrap;
}

.pro-patient-tabs-bar .pro-tab-back {
    flex-shrink: 0;
    margin-bottom: 8px;
    text-decoration: none;
}

.pro-patient-tabs-bar .pro-tabs-in-bar {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    border-bottom: none;
}

/* Tabs */
.pro-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--pro-border);
    margin-bottom: 20px;
    overflow-x: auto;
}

.pro-tab {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--pro-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
}

.pro-tab:hover {
    color: var(--pro-green);
}

.pro-tab.active {
    color: var(--pro-green);
    font-weight: 600;
    border-bottom-color: var(--pro-green);
}

.pro-config-tabs {
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 16px;
}

.pro-config-tabs .pro-tab {
    padding: 10px 14px;
    font-size: 13px;
}

/* Data list */
.pro-dl {
    margin: 0;
}

.pro-dl dt {
    font-size: 12px;
    color: var(--pro-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.pro-dl dd {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
}

/* Meal plan layout */
.pro-meal-layout {
    display: grid;
    grid-template-columns: 200px 1fr 260px;
    gap: 0;
    min-height: 420px;
}

.pro-meal-detail {
    padding: 20px 24px;
}

.pro-meal-plate-preview {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--pro-green-soft);
    border-radius: 12px;
    border: 1px solid var(--pro-border);
}

.pro-meal-plate-preview img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pro-meal-plate-caption {
    font-size: 13px;
    color: var(--pro-muted);
    line-height: 1.5;
}

.pro-meal-plate-caption strong {
    display: block;
    color: var(--pro-green);
    font-size: 14px;
    margin: 2px 0;
}

.pro-meal-nav {
    border-right: 1px solid var(--pro-border);
    padding: 12px 0;
}

.pro-meal-nav button,
.pro-meal-nav a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    color: var(--pro-text);
    border-left: 3px solid transparent;
}

.pro-meal-nav .active {
    background: var(--pro-green-soft);
    border-left-color: var(--pro-green);
    font-weight: 600;
    color: var(--pro-green);
}

.pro-meal-nav small {
    display: block;
    color: var(--pro-muted);
    font-size: 11px;
    margin-top: 2px;
}

.pro-meal-detail {
    padding: 20px 24px;
}

.pro-meal-detail h4 {
    margin: 0 0 16px;
    font-size: 15px;
}

.pro-food-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pro-food-list li {
    padding: 8px 0 8px 16px;
    position: relative;
    font-size: 14px;
    border-bottom: 1px solid var(--pro-border);
}

.pro-food-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--pro-green);
}

.pro-macros {
    border-left: 1px solid var(--pro-border);
    padding: 20px;
    text-align: center;
}

.pro-macros h4 {
    margin: 0 0 8px;
    font-size: 14px;
}

.pro-macros .total {
    font-size: 13px;
    color: var(--pro-muted);
    margin-bottom: 16px;
}

.pro-donut {
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
}

.pro-ai-tip {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--pro-radius);
    padding: 14px 18px;
    margin-top: 16px;
    display: flex;
    gap: 12px;
    font-size: 13px;
    align-items: flex-start;
}

.pro-food-results {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--pro-border);
    border-radius: 8px;
}

.pro-food-hit {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid var(--pro-border);
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}

.pro-food-hit:hover {
    background: var(--pro-green-soft);
}

.pro-food-hit strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.pro-food-hit small {
    color: var(--pro-muted);
    font-size: 12px;
}

.pro-food-modal.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pro-food-modal.modal.active {
    display: flex;
}

.pro-food-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--pro-border);
    padding: 0 16px;
}

.pro-food-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--pro-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.pro-food-tab.active {
    color: var(--pro-green);
    border-bottom-color: var(--pro-green);
}

.pro-food-tab-panel {
    padding-top: 4px;
}

.pro-food-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pro-border);
}

.pro-food-item-macros {
    font-size: 12px;
    color: var(--pro-muted);
    margin-top: 4px;
}

.anamnesis-section { margin-bottom: 16px; }
.anamnesis-section-desc { font-size: 13px; color: var(--pro-muted); margin: 0 0 12px; line-height: 1.5; }
.anamnesis-markers-wrap { grid-column: 1 / -1; }
.anamnesis-markers { display: flex; flex-direction: column; gap: 6px; }
.anamnesis-marker-opt {
    display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer;
    padding: 6px 0;
}
.anamnesis-section-life { margin-bottom: 12px; }
.anamnesis-section-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: #111; }
.anamnesis-section-life .anamnesis-section-desc { margin-bottom: 12px; }
.anamnesis-section-life .anamnesis-field { margin-bottom: 14px; }
.anamnesis-section-life .anamnesis-markers { gap: 4px; }
.recall-items-table input, .recall-items-table select { font-size: 13px; padding: 6px 8px; }
.recall-meal-block .pro-card-hd h3 { font-size: 15px; }

.pro-config-table td { vertical-align: top; padding: 12px 16px; }
.pro-config-table thead th { font-size: 12px; text-transform: uppercase; color: var(--pro-muted); }

.pro-food-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.pro-food-alt {
    font-size: 12px;
    color: var(--pro-green);
    margin-top: 4px;
    font-style: italic;
}

.pro-food-qty-label {
    font-size: 13px;
    color: var(--pro-muted);
    white-space: nowrap;
}

.pro-qty-unit-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 12px;
}

.pro-macro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.pro-macro-calc-wrap {
    display: flex;
    align-items: flex-end;
    margin: 0;
}

.pro-food-hint {
    font-size: 13px;
    color: var(--pro-muted);
    margin: 0 0 16px;
    line-height: 1.5;
}

.pro-food-preview {
    font-size: 13px;
    color: var(--pro-muted);
    margin: 12px 0 0;
}

.pro-food-empty {
    color: var(--pro-muted);
    padding: 8px;
    font-size: 13px;
    margin: 0;
}

.pro-link-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
    color: var(--pro-green);
}

/* Barra de ações — adicionar itens ao plano alimentar */
body.pro-app .pro-meal-add-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--pro-border);
}

body.pro-app .pro-meal-add-bar .pro-meal-add-btn {
    margin: 0;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pro-green);
    background: #fff;
    background-image: none;
    border: 1px solid #d4ddd0;
    box-shadow: 0 1px 2px rgba(27, 48, 34, 0.06);
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
}

body.pro-app .pro-meal-add-bar .pro-meal-add-btn:hover {
    background: var(--pro-green-soft);
    border-color: var(--pro-green-mid);
    color: var(--pro-green);
    box-shadow: 0 2px 8px rgba(27, 48, 34, 0.08);
}

body.pro-app .pro-meal-add-bar .pro-meal-add-btn:active {
    transform: scale(0.98);
}

body.pro-app .pro-meal-add-bar .pro-meal-add-btn:focus-visible {
    outline: 2px solid var(--pro-green-mid);
    outline-offset: 2px;
}

body.pro-app .pro-meal-add-bar .pro-meal-add-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--pro-green-soft);
    color: var(--pro-green-mid);
    flex-shrink: 0;
}

body.pro-app .pro-meal-add-bar .pro-meal-add-btn-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

body.pro-app .pro-meal-add-bar .pro-meal-add-btn-accent {
    border-color: #b8c9ae;
}

body.pro-app .pro-meal-add-bar .pro-meal-add-btn-accent .pro-meal-add-btn-icon {
    background: #dce8d4;
}

body.pro-app .pro-meal-add-bar .pro-meal-add-btn-muted {
    color: var(--pro-muted);
    border: 1px dashed #c8d0c4;
    box-shadow: none;
}

body.pro-app .pro-meal-add-bar .pro-meal-add-btn-muted .pro-meal-add-btn-icon {
    background: var(--pro-bg);
    color: var(--pro-muted);
}

body.pro-app .pro-meal-add-bar .pro-meal-add-btn-muted:hover {
    color: var(--pro-green);
    border-style: solid;
    border-color: var(--pro-green-light);
    box-shadow: 0 1px 2px rgba(27, 48, 34, 0.06);
}

body.pro-app .pro-meal-add-bar .pro-meal-add-btn-muted:hover .pro-meal-add-btn-icon {
    background: var(--pro-green-soft);
    color: var(--pro-green-mid);
}

.pro-food-tabs {
    flex-wrap: wrap;
}

.pro-food-tab {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    padding: 10px 8px;
}

.pro-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.pro-profile-preview {
    padding: 14px 16px;
    background: var(--pro-green-soft);
    border: 1px solid var(--pro-green-light);
    border-radius: 10px;
}

.pro-profile-preview strong {
    display: block;
    font-size: 13px;
    color: var(--pro-green);
    margin-bottom: 6px;
}

.pro-profile-tips {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--pro-muted);
    line-height: 1.5;
}

.pro-template-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.pro-template-cards-compact {
    max-height: 380px;
}

.pro-template-card {
    position: relative;
    display: block;
    padding: 14px;
    border: 2px solid var(--pro-border);
    border-radius: 10px;
    background: var(--pro-card);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pro-template-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pro-template-card strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--pro-text);
}

.pro-template-card-meta,
.pro-template-card-desc {
    display: block;
    font-size: 12px;
    color: var(--pro-muted);
    line-height: 1.4;
}

.pro-template-card-desc {
    margin-top: 4px;
}

.pro-template-card:hover {
    border-color: var(--pro-green-light);
}

.pro-template-card.selected,
.pro-template-card.recommended {
    border-color: var(--pro-green-mid);
    background: var(--pro-green-soft);
    box-shadow: var(--pro-shadow);
}

.pro-template-card-action {
    cursor: default;
}

.pro-template-card-action .btn-apply-template {
    margin-top: 10px;
    width: 100%;
}

.pro-template-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--pro-green-mid);
    color: #fff;
    margin-bottom: 6px;
    margin-right: 4px;
}

.pro-template-badge.tea {
    background: #b45309;
}

.pro-template-meals-list {
    margin: 8px 0 0;
    padding-left: 16px;
    font-size: 11px;
    color: var(--pro-muted);
    line-height: 1.45;
}

.pro-meal-hd-edit {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pro-meal-hd-edit h4 {
    margin: 0;
    flex: 1;
}

.pro-meal-meta-form {
    padding: 12px;
    background: var(--pro-green-soft);
    border: 1px solid var(--pro-green-light);
    border-radius: 8px;
    margin-bottom: 12px;
    max-width: 320px;
}

.pro-site-admin-card {
    transition: box-shadow 0.15s, border-color 0.15s;
}

.pro-site-admin-card:hover {
    box-shadow: var(--pro-shadow);
    border-color: var(--pro-green-light);
}

/* Base de alimentos — áreas de consulta e fontes */
.pro-foods-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}

.pro-foods-area-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--pro-border);
    border-radius: 10px;
    background: var(--pro-card);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pro-foods-area-card:hover {
    border-color: var(--pro-green-light);
}

.pro-foods-area-card.active {
    border-color: var(--pro-primary);
    box-shadow: 0 0 0 1px var(--pro-primary);
}

.pro-foods-area-emoji {
    font-size: 22px;
    line-height: 1;
}

.pro-foods-area-label {
    font-weight: 600;
    font-size: 14px;
}

.pro-foods-area-combo {
    font-size: 10px;
    color: var(--pro-muted);
    line-height: 1.3;
}

.pro-foods-area-stats {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    margin-bottom: 20px;
    max-width: 100%;
}

.pro-foods-source-tabs {
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pro-foods-source-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pro-foods-source-tab small {
    font-size: 11px;
    opacity: 0.75;
    font-weight: 500;
}

.pro-foods-source-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.pro-foods-cat-panel {
    margin-bottom: 16px;
    width: 100%;
}

.pro-foods-cat-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
    width: 100%;
}

.pro-foods-cat-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 12px 10px;
    border: 2px solid var(--pro-border);
    border-radius: 12px;
    background: var(--pro-card);
    text-decoration: none;
    color: var(--pro-text);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
}

.pro-foods-cat-tab:hover {
    border-color: var(--pro-green-light);
}

.pro-foods-cat-tab.active {
    border-color: var(--pro-green-mid);
    background: var(--pro-green-soft);
}

.pro-foods-cat-tab-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.pro-foods-cat-tab-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.pro-foods-cat-tab-name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.pro-foods-cat-tab-count {
    font-size: 10px;
    color: var(--pro-muted);
    margin-top: 2px;
}

.pro-foods-search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.pro-foods-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pro-foods-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--pro-border);
}

.pro-foods-list-item:last-child {
    border-bottom: none;
}

.pro-food-thumb {
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pro-food-thumb-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.pro-foods-list-body {
    flex: 1;
    min-width: 0;
}

.pro-foods-list-name {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.pro-foods-list-macros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 13px;
    color: var(--pro-text);
    margin-top: 6px;
}

.pro-foods-list-hint {
    display: block;
    font-size: 11px;
    color: var(--pro-muted);
    margin-top: 4px;
}

.pro-foods-list-hd .pro-foods-list-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    font-size: 1rem;
}

.pro-foods-list-hd .pro-foods-list-title small {
    font-weight: 400;
    color: var(--pro-muted);
}

.pro-foods-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--pro-border);
}

.pro-foods-page-active {
    background: var(--pro-green-soft) !important;
    border-color: var(--pro-green-mid) !important;
    color: var(--pro-green) !important;
}

.pro-foods-page-info {
    font-size: 12px;
    color: var(--pro-muted);
    width: 100%;
    text-align: center;
    margin-top: 4px;
}

.pro-blog-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pro-blog-list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pro-border);
}

.pro-blog-list-item:last-child {
    border-bottom: none;
}

.pro-blog-featured-preview {
    max-width: 100%;
    max-height: 160px;
    margin-top: 8px;
    border-radius: 8px;
    object-fit: cover;
}

.pro-plan-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.pro-plan-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pro-plan-title h2 {
    margin: 0;
    font-size: 1.2rem;
}

.pro-assess-section {
    margin: 20px 0 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pro-green);
    border-bottom: 1px solid var(--pro-border);
    padding-bottom: 6px;
}

.pro-exam-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.pro-exam-file-card {
    border: 1px solid var(--pro-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.pro-exam-file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    background: #f8faf6;
    text-decoration: none;
}

.pro-exam-file-preview img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.pro-exam-file-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 700;
    font-size: 14px;
}

.pro-exam-file-meta {
    padding: 12px;
    font-size: 13px;
}

.pro-exam-file-meta strong {
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pro-exam-file-meta small {
    color: var(--pro-muted);
}

.pro-exam-file-actions {
    margin-top: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Diário Life no PRO */
.pro-diary-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pro-diary-day-card {
    border: 1px solid var(--pro-border);
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

.pro-diary-day-hd {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pro-border);
}

.pro-diary-day-hd strong {
    font-size: 15px;
    color: var(--pro-text);
}

.pro-diary-day-hd span {
    font-size: 12px;
    color: var(--pro-muted);
    font-weight: 600;
}

.pro-diary-block-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pro-muted);
    margin-bottom: 8px;
}

.pro-diary-mood-block {
    margin-bottom: 14px;
}

.pro-diary-mood-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.pro-diary-mood-chip {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: #f8faf6;
    opacity: 0.45;
}

.pro-diary-mood-chip.is-selected {
    opacity: 1;
    border-color: var(--pro-green);
    background: var(--pro-green-soft);
    box-shadow: 0 0 0 2px rgba(45, 79, 30, 0.12);
}

.pro-diary-mood-text {
    font-size: 13px;
    color: var(--pro-text);
}

.pro-diary-muted {
    color: var(--pro-muted);
}

.pro-diary-section {
    margin-bottom: 14px;
}

.pro-diary-logs-dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0;
}

.pro-diary-logs-dl > div {
    border: 1px solid var(--pro-border);
    border-radius: 8px;
    padding: 10px 12px;
    background: #f8faf6;
}

.pro-diary-logs-dl dt {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--pro-muted);
}

.pro-diary-logs-dl dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--pro-text);
}

@media (max-width: 560px) {
    .pro-diary-logs-dl {
        grid-template-columns: 1fr;
    }
}

.pro-plate-photos-grid--inline {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
}

/* Fotos do prato (Life) — miniaturas + modal */
.pro-plate-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.pro-plate-photo-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0;
    border: 1px solid var(--pro-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pro-plate-photo-item:hover {
    border-color: var(--pro-green-light);
    box-shadow: 0 2px 8px rgba(45, 79, 30, 0.12);
}

.pro-plate-photo-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    background: #f3f4f6;
    overflow: hidden;
}

.pro-plate-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-plate-photo-when {
    display: block;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--pro-text);
    line-height: 1.3;
}

.pro-plate-photo-meal {
    display: block;
    padding: 0 6px 6px;
    font-size: 9px;
    color: var(--pro-muted);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.pro-plate-modal-open {
    overflow: hidden;
}

.pro-plate-modal[hidden] {
    display: none !important;
}

.pro-plate-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pro-plate-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.pro-plate-modal-panel {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 720px);
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.pro-plate-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--pro-text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.pro-plate-modal-panel img {
    width: 100%;
    max-height: calc(90vh - 72px);
    object-fit: contain;
    background: #111;
}

.pro-plate-modal-meta {
    padding: 12px 16px 14px;
    border-top: 1px solid var(--pro-border);
}

.pro-plate-modal-meta strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.pro-plate-modal-meta span {
    font-size: 13px;
    color: var(--pro-muted);
}

.pro-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.pro-photo-card {
    border: 1px solid var(--pro-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.pro-photo-thumb {
    display: block;
    height: 160px;
    background: #f3f4f6;
    overflow: hidden;
}

.pro-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-photo-meta {
    padding: 10px 12px;
    font-size: 12px;
}

.pro-photo-meta strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pro-photo-meta small {
    color: var(--pro-muted);
}

.pro-photo-actions {
    margin-top: 8px;
    display: flex;
    gap: 10px;
}

.pro-photo-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pro-photo-compare-col img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--pro-border);
}

.pro-photo-compare-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--pro-green);
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .pro-photo-compare {
        grid-template-columns: 1fr;
    }
}

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

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

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

@media (max-width: 900px) {
    .pro-grid-3 {
        grid-template-columns: 1fr;
    }
    .pro-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .pro-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .pro-grid-2 {
        grid-template-columns: 1fr;
    }
    .pro-meal-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pro-sidebar {
        transform: translateX(-100%);
    }
    .pro-main {
        margin-left: 0;
    }
}

/* Dialog modal (centro da página) */
.pro-dialog.modal {
    z-index: 9999;
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    padding: 20px;
}

.pro-dialog.modal.active {
    display: flex !important;
}

.pro-dialog-content {
    max-width: 420px;
    width: calc(100% - 32px);
    padding: 28px 28px 24px;
    text-align: center;
    border: 1px solid var(--pro-border);
}

.pro-dialog-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pro-dialog-icon-success {
    background: var(--pro-green-soft);
}

.pro-dialog-icon-danger {
    background: #fef2f2;
}

.pro-dialog-icon-info {
    background: #f0fdf4;
}

.pro-dialog-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--pro-text);
}

.pro-dialog-message {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--pro-muted);
}

.pro-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.pro-dialog-actions .pro-btn {
    min-width: 120px;
}

.pro-btn-danger {
    background: #b91c1c;
    color: #fff;
}

.pro-btn-danger:hover {
    background: #991b1b;
    color: #fff;
}

/* ========== Agenda (calendário + horários) — página inteira ========== */
.pro-content.pro-content-schedule {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.pro-content-schedule .pro-schedule-wrap {
    max-width: none;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pro-content-schedule .pro-schedule-head {
    flex-shrink: 0;
}

.pro-content-schedule .pro-schedule-card {
    min-height: calc(100vh - 168px);
}

.pro-schedule-wrap {
    max-width: none;
    width: 100%;
}

.pro-schedule-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pro-schedule-title {
    margin: 0 0 4px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pro-text);
}

.pro-schedule-sub {
    margin: 0;
    font-size: 14px;
    color: var(--pro-muted);
}

.pro-schedule-booked {
    background: #fff;
    border: 1px solid var(--pro-border);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.pro-schedule-booked-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.pro-schedule-booked-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--pro-text);
}

.pro-schedule-booked-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--pro-green);
    background: var(--pro-green-soft);
    padding: 4px 10px;
    border-radius: 999px;
}

.pro-schedule-booked-empty {
    padding: 20px 16px;
    text-align: center;
    background: var(--pro-bg, #f8faf8);
    border-radius: 10px;
    border: 1px dashed var(--pro-border);
}

.pro-schedule-booked-empty p {
    margin: 0;
    font-size: 14px;
    color: var(--pro-muted);
}

.pro-schedule-booked-empty-hint {
    margin-top: 6px !important;
    font-size: 12px !important;
}

.pro-schedule-booked-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.pro-schedule-booked-item {
    display: grid;
    grid-template-columns: 108px 1fr auto;
    gap: 12px 16px;
    align-items: center;
    padding: 12px 14px;
    background: var(--pro-green-soft);
    border-radius: 10px;
    border: 1px solid transparent;
}

.pro-schedule-booked-item.is-lead {
    background: #fffbeb;
    border-color: #fcd34d;
}

.pro-schedule-booked-item.is-today-cal {
    box-shadow: inset 0 0 0 2px var(--pro-green);
}

.pro-schedule-booked-when {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.pro-schedule-booked-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--pro-muted);
    text-decoration: none;
}

.pro-schedule-booked-date:hover {
    color: var(--pro-green);
    text-decoration: underline;
}

.pro-schedule-booked-time {
    font-size: 15px;
    font-weight: 700;
    color: var(--pro-green);
}

.pro-schedule-booked-body {
    min-width: 0;
}

.pro-schedule-booked-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.pro-schedule-booked-name {
    font-size: 14px;
    color: var(--pro-text);
}

.pro-schedule-booked-contact {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--pro-muted);
}

.pro-schedule-booked-contact a {
    color: var(--pro-green);
    text-decoration: none;
}

.pro-schedule-booked-contact a:hover {
    text-decoration: underline;
}

.pro-schedule-booked-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.pro-schedule-card {
    background: #fff;
    border: 1px solid var(--pro-border);
    border-radius: 16px;
    padding: clamp(20px, 2.5vw, 28px);
    box-shadow: 0 4px 24px rgba(45, 79, 30, 0.06);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pro-schedule-grid {
    display: grid;
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: clamp(20px, 3vw, 36px);
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.pro-schedule-calendar {
    user-select: none;
    padding-right: clamp(12px, 2vw, 24px);
    border-right: 1px solid var(--pro-border);
}

.pro-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pro-cal-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    border-radius: 8px;
    color: var(--pro-muted);
    text-decoration: none;
    font-size: 22px;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
}

.pro-cal-arrow:hover {
    color: var(--pro-green);
    background: var(--pro-green-soft);
}

.pro-cal-month {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--pro-text);
}

.pro-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.pro-cal-weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--pro-muted);
    padding: 4px 2px;
}

.pro-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.pro-cal-day {
    aspect-ratio: 1;
    min-height: 42px;
    max-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: var(--pro-text);
    font-family: inherit;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.pro-cal-day.empty {
    pointer-events: none;
}

.pro-cal-day:hover:not(.empty):not(.selected) {
    background: var(--pro-green-soft);
}

.pro-cal-day.selected {
    background: #1B3022;
    color: #fff;
    font-weight: 600;
}

.pro-cal-day.today:not(.selected) {
    box-shadow: inset 0 0 0 2px var(--pro-green);
}

.pro-cal-day.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.pro-schedule-times {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.pro-schedule-times h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--pro-text);
}

.pro-time-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    flex: 1;
    overflow-y: auto;
    max-height: none;
    align-content: start;
    padding-right: 4px;
}

.pro-time-slot {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--pro-border);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    text-align: left;
    transition: all 0.15s;
    box-sizing: border-box;
}

.pro-time-slot.available {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.pro-time-slot.available:hover {
    border-color: var(--pro-green);
    color: var(--pro-green);
}

.pro-time-slot.available.selected {
    background: #1B3022;
    border-color: #1B3022;
    color: #fff;
}

.pro-time-slot.available.selected .pro-time-slot-free {
    color: rgba(255, 255, 255, 0.85);
}

.pro-time-slot.booked {
    background: var(--pro-green-soft);
    border-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pro-time-slot.booked-lead {
    background: #fffbeb;
    border: 1px solid #fcd34d;
}

.pro-time-slot-main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.pro-time-slot-hour {
    font-size: 14px;
    font-weight: 700;
}

.pro-time-slot-name {
    font-size: 13px;
    color: var(--pro-text);
}

.pro-time-slot-free {
    font-size: 12px;
    color: var(--pro-muted);
    font-weight: 500;
}

.pro-time-slot-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pro-schedule-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--pro-border);
    font-size: 13px;
    color: var(--pro-muted);
}

.pro-schedule-note svg {
    color: var(--pro-green);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .pro-content.pro-content-schedule {
        padding: 12px 14px 16px;
    }

    .pro-schedule-grid {
        grid-template-columns: 1fr;
    }

    .pro-schedule-calendar {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--pro-border);
        padding-bottom: 20px;
        margin-bottom: 4px;
    }

    .pro-time-list {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .pro-schedule-booked-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pro-schedule-booked-actions {
        justify-content: flex-start;
    }

    .pro-schedule-booked-list {
        max-height: none;
    }
}

@media (min-width: 1400px) {
    .pro-schedule-grid {
        grid-template-columns: minmax(320px, 380px) 1fr;
    }

    .pro-time-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Planos de treino — PRO */
.pro-workout-templates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.pro-workout-template-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border: 2px solid var(--pro-border);
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
}
.pro-workout-template-card:has(input:checked) {
    border-color: var(--pro-primary);
    background: var(--pro-green-soft);
}
.pro-workout-template-card input {
    margin-bottom: 4px;
}
.pro-workout-template-card strong {
    font-size: 14px;
}
.pro-workout-template-card span {
    font-size: 13px;
    color: var(--pro-muted);
    line-height: 1.35;
}
.pro-workout-template-card small {
    font-size: 11px;
    color: var(--pro-primary);
    font-weight: 600;
}
.pro-workout-session-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.pro-workout-session-hd h4 {
    margin: 0;
}
.pro-workout-phase {
    font-size: 13px;
    color: var(--pro-muted);
    margin: 0 0 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
}
.pro-workout-exercise-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pro-workout-exercise-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--pro-border);
}
.pro-workout-exercise-item:last-child {
    border-bottom: none;
}
.pro-workout-ex-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--pro-green-soft);
    color: var(--pro-green);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pro-workout-ex-body {
    flex: 1;
    min-width: 0;
}
.pro-workout-ex-meta {
    display: block;
    font-size: 13px;
    color: var(--pro-muted);
    margin: 4px 0 6px;
}
.pro-workout-exercise-item .life-workout-ex-thumb {
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px var(--pro-border);
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #ecfdf5 100%);
}
.pro-workout-exercise-item .life-workout-ex-visual,
.pro-workout-exercise-item .life-workout-ex-visual img,
.pro-workout-exercise-item .life-workout-ex-visual video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center bottom;
}
.pro-workout-exercise-item .life-workout-ex-visual--frames .life-ex-frame--b {
    display: none;
}
.pro-workout-exercise-item .life-workout-ex-play {
    display: none;
}

/* Menu lateral — seções por perfil */
.pro-sidebar-section {
    margin-bottom: 2px;
}

.pro-sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 10px 12px 3px;
}

.pro-sidebar-nav .pro-sidebar-section:first-child .pro-sidebar-section-label {
    padding-top: 2px;
}

.pro-sidebar-nav--compact .pro-sidebar-section-label {
    display: none;
}

.pro-sidebar-nav--compact .pro-sidebar-section {
    margin-bottom: 0;
}


.pro-user-owner-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pro-perm-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pro-border);
}

.pro-perm-toolbar strong {
    margin-right: auto;
    font-size: 14px;
}

.pro-perm-matrix-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
    border: 1px solid var(--pro-border);
    border-radius: 10px;
}

.pro-perm-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 640px;
}

.pro-perm-matrix th,
.pro-perm-matrix td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--pro-border);
    text-align: center;
    vertical-align: middle;
}

.pro-perm-matrix th[scope="row"] {
    text-align: left;
    font-weight: 600;
    color: var(--pro-text);
    white-space: nowrap;
}

.pro-perm-matrix thead th {
    font-size: 12px;
    font-weight: 700;
    color: var(--pro-muted);
    background: #fafafa;
}

.pro-perm-matrix tbody tr:last-child th,
.pro-perm-matrix tbody tr:last-child td {
    border-bottom: none;
}

.pro-perm-matrix input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.pro-perm-group {
    margin-bottom: 14px;
}

.pro-perm-group-hd {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pro-muted);
    margin-bottom: 8px;
}

.pro-perm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
}

.pro-perm-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.pro-perm-check:hover {
    background: var(--pro-green-soft, #f3f7ef);
    border-color: var(--pro-border);
}

.pro-perm-check input {
    margin-top: 2px;
    flex-shrink: 0;
}

@media (max-width: 960px) {
    .pro-users-grid {
        grid-template-columns: 1fr;
    }

    .pro-perm-grid {
        grid-template-columns: 1fr;
    }
}

.pro-gym-dash-footnote {
    font-size: 12px;
    color: var(--pro-muted);
    margin: 16px 0 0;
}

.pro-gym-stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.pro-gym-progress-bar-wrap {
    height: 8px;
    background: #eef2e8;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 4px;
    max-width: 120px;
}

.pro-gym-progress-bar {
    height: 100%;
    background: var(--pro-green, #2D4F1E);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.pro-chart-wrap-sm {
    height: 220px;
}

.pro-gym-student-table td {
    vertical-align: middle;
}

/* Hidratação Life no prontuário */
.pro-water-bar { height: 8px; }
.pro-water-week { display: flex; flex-direction: column; gap: 8px; }
.pro-water-day {
    display: grid;
    grid-template-columns: 44px 1fr 72px;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.pro-water-day--today .pro-water-day-label { color: var(--pro-green); font-weight: 700; }
.pro-water-day-label { color: var(--pro-muted); font-size: 12px; }
.pro-water-day-bar {
    height: 8px; background: var(--pro-gray-100, #f3f4f6); border-radius: 99px; overflow: hidden;
}
.pro-water-day-bar i {
    display: block; height: 100%; background: var(--pro-green); border-radius: 99px;
}
.pro-water-day-val { text-align: right; font-weight: 600; font-size: 12px; }

.pro-shopping-accordion { display: flex; flex-direction: column; gap: 8px; }
.pro-shopping-acc { border: 1px solid var(--pro-border); border-radius: 10px; overflow: hidden; }
.pro-shopping-acc-btn {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 12px 14px; border: none; background: var(--pro-card); cursor: pointer;
    font-size: 14px; font-weight: 600; text-align: left;
}
.pro-shopping-acc-btn small { font-weight: 500; color: var(--pro-muted); }
.pro-shopping-acc-panel { display: none; padding: 0 14px 12px; border-top: 1px solid var(--pro-border); }
.pro-shopping-acc.is-open .pro-shopping-acc-panel { display: block; }
.pro-shopping-acc-panel ul { margin: 8px 0 0; padding-left: 18px; }
.pro-shopping-acc-panel li { margin-bottom: 6px; font-size: 14px; }
.pro-shopping-alt { color: var(--pro-muted); font-size: 12px; }
@media print {
    .pro-sidebar, .pro-topbar, .pro-back, .pro-btn { display: none !important; }
    .pro-shopping-print { break-inside: avoid; }
}
