/* AmarArte Reservas — área de gestão */
.aa-gest, .aa-login {
	--g-bg: #FBF6F4; --g-card: #fff; --g-blush: #F3E4E0; --g-line: #EADAD5; --g-line2: #E3CFCA;
	--g-ink: #2F3332; --g-muted: #4F5553; --g-soft: #5F6563; --g-rose: #9E5A55; --g-rose-t: #8C5550;
	--g-serif: 'Cormorant Garamond', Georgia, serif;
	color: var(--g-ink); font-size: 15px; line-height: 1.5; font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
	max-width: 1200px; margin: 0 auto;
}
.aa-gest *, .aa-login * { box-sizing: border-box; }
.aa-gest [hidden] { display: none !important; }
.aa-gest button, .aa-gest input, .aa-gest select, .aa-gest textarea { font: inherit; color: inherit; }
.aa-gest h1, .aa-gest h2, .aa-gest h3 { font-family: var(--g-serif); font-weight: 500; margin: 0; line-height: 1.1; color: inherit; padding: 0; }
.aa-gest p { margin: 0; }
.aa-gest .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.aa-gest--admin { margin-top: 16px; }

.ag-head { background: var(--g-ink); color: #FBF6F4; border-radius: 22px; padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 16px; }
.ag-head h1 { font-size: 34px; color: #fff; }
.ag-eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #E7C6C1 !important; margin-bottom: 4px !important; }
.ag-head__links { display: flex; gap: 16px; align-items: flex-start; }
.ag-head__links a { color: #F3E4E0; }
.ag-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .ag-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ag-head { grid-template-columns: 1fr; } }
.ag-stat { background: rgba(255,255,255,.08); border: 0; border-radius: 14px; padding: 12px 14px; color: #FBF6F4 !important; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.ag-stat:hover { background: rgba(255,255,255,.14); }
.ag-stat b { font-family: var(--g-serif); font-size: 32px; font-weight: 600; line-height: 1; }
.ag-stat span { font-size: 13px; color: #E3D6D2; }

.ag-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 14px; }
.ag-tabs { display: flex; background: var(--g-blush); padding: 5px; border-radius: 999px; gap: 4px; flex-wrap: wrap; }
.ag-tabs button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font-weight: 500; color: #5A4744; cursor: pointer; min-height: 42px; }
.ag-tabs button[aria-selected="true"] { background: #fff; color: var(--g-ink); box-shadow: 0 1px 3px rgba(47,51,50,.12); }

.ag-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--g-line2); background: #fff; color: var(--g-ink) !important; text-decoration: none; border-radius: 999px; padding: 9px 16px; font-weight: 500; font-size: 14px; cursor: pointer; min-height: 40px; line-height: 1.2; }
.ag-btn:hover { border-color: var(--g-rose); }
.ag-btn--rose { background: var(--g-rose); border-color: var(--g-rose); color: #fff !important; }
.ag-btn--rose:hover { filter: brightness(.95); }
.ag-btn--icon { width: 40px; padding: 0; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-chip { border: 1px solid var(--g-line2); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; min-height: 38px; }
.ag-chip[aria-pressed="true"] { background: var(--g-ink); color: #fff; border-color: var(--g-ink); }

.ag-filtros { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ag-busca input { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--g-line2); min-width: 260px; min-height: 40px; background: #fff; }
@media (max-width: 640px) { .ag-busca, .ag-busca input { width: 100%; min-width: 0; } }

.ag-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; transition: opacity .2s; }
.ag-lista.is-loading { opacity: .5; }
.ag-vazio { grid-column: 1 / -1; text-align: center; padding: 40px 10px; color: var(--g-soft); background: #fff; border: 1px dashed var(--g-line2); border-radius: 18px; }
.ag-req { background: #fff; border: 1px solid var(--g-line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ag-req.is-recusada, .ag-req.is-cancelada, .ag-req.is-expirada { opacity: .7; }
.ag-req__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 500; background: #EFEAE8; color: #5F5652; }
.ag-tag--ev { background: #F3E4E0; color: #6E3A36; }
.ag-tag--me { background: #E8EEF3; color: #2F4A60; }
.ag-tag--pendente, .ag-tag--pre_reserva { background: #FBEBD5; color: #6B410F; }
.ag-tag--confirmada { background: #E4EFE3; color: #2F5233; }
.ag-req__nome { font-weight: 500; font-size: 17px; }
.ag-req__meta { font-size: 14px; color: var(--g-muted); }
.ag-req__meta strong { color: var(--g-ink); font-weight: 500; }
.ag-req__det { font-size: 14px; }
.ag-req__notas { font-size: 14px; color: var(--g-muted); font-style: italic; background: var(--g-bg); padding: 8px 12px; border-radius: 10px; }
.ag-req__int summary { cursor: pointer; font-size: 13px; color: var(--g-soft); }
.ag-req__int textarea { width: 100%; margin-top: 6px; border: 1px solid var(--g-line2); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.ag-req__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.ag-req__contactos { display: flex; gap: 6px; margin-left: auto; }

.ag-card { background: #fff; border: 1px solid var(--g-line); border-radius: 20px; padding: 20px; }
.ag-muted { color: var(--g-soft); font-size: 14px; }
.ag-calwrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .ag-calwrap { grid-template-columns: 1fr; } }
.ag-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ag-cal-head h2 { font-size: 26px; font-weight: 600; text-transform: capitalize; }
.ag-nav { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--g-line2); background: #fff; cursor: pointer; font-size: 22px; line-height: 1; padding: 0; }
.ag-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.ag-wd { text-align: center; font-size: 11px; text-transform: uppercase; color: var(--g-soft); letter-spacing: .06em; }
.ag-day { position: relative; min-height: 54px; border-radius: 12px; border: 1.5px solid var(--g-line); background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px 0; }
.ag-day b { font-weight: 500; }
.ag-day.is-folga { border-style: dashed; }
.ag-day.is-bloq { background: #EFEAE8; border-color: #EFEAE8; color: #6B6461; }
.ag-day.is-bloq b { text-decoration: line-through; }
.ag-day.is-passado { color: #B3A8A5; }
.ag-day.is-sel { border-color: var(--g-rose); box-shadow: 0 0 0 2px var(--g-rose) inset; }
.ag-dots { display: flex; gap: 3px; height: 6px; }
.ag-dot { width: 6px; height: 6px; border-radius: 9px; display: inline-block; }
.ag-dot--conf { background: #2F5233; }
.ag-dot--pre { background: #A0702E; }
.ag-cnt { position: absolute; top: 3px; right: 4px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--g-rose); color: #fff; font-size: 10px; line-height: 17px; font-weight: 500; text-align: center; padding: 0 4px; }
.ag-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--g-muted); margin-top: 12px; }
.ag-legend span { display: flex; align-items: center; gap: 6px; }
.ag-legend i { width: 10px; height: 10px; border-radius: 9px; display: inline-block; }
.ag-dia { display: flex; flex-direction: column; gap: 12px; }
.ag-dia h3 { font-size: 24px; font-weight: 600; }
.ag-bloq { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--g-line); border-bottom: 1px solid var(--g-line); }
.ag-dia__lista { display: flex; flex-direction: column; gap: 12px; }

.ag-menu { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.ag-menu h2 { font-size: 28px; font-weight: 600; }
.ag-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .ag-grid2 { grid-template-columns: 1fr; } }
.ag-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.ag-f input, .ag-f select, .ag-f textarea, .ag-prato input { border: 1px solid var(--g-line2); border-radius: 10px; padding: 10px 12px; min-height: 44px; background: #fff; font-weight: 400; width: 100%; font-size: 15px; }
.ag-inline { display: flex; gap: 8px; }
.ag-pratos { display: flex; flex-direction: column; gap: 8px; }
.ag-prato { display: grid; grid-template-columns: 28px 1fr 1fr; gap: 8px; align-items: center; }
@media (max-width: 600px) { .ag-prato { grid-template-columns: 28px 1fr; } .ag-prato [data-a] { grid-column: 2; } }
.ag-prato__n { width: 28px; height: 28px; border-radius: 99px; background: var(--g-blush); color: var(--g-rose-t); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; }
.ag-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.ag-modal { position: fixed; inset: 0; background: rgba(47,51,50,.45); z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.ag-modal__box { background: #fff; border-radius: 22px; padding: 22px; width: 100%; max-width: 620px; display: flex; flex-direction: column; gap: 12px; }
.ag-modal__head { display: flex; justify-content: space-between; align-items: center; }
.ag-modal__head h2 { font-size: 28px; font-weight: 600; }
.ag-form { display: flex; flex-direction: column; gap: 14px; }

.ag-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--g-ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 100001; max-width: calc(100% - 32px); }
.ag-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.ag-toast.is-erro { background: #8A2C22; }

.aa-login { max-width: 420px; background: #fff; border: 1px solid var(--g-line); border-radius: 22px; padding: 28px; }
.aa-login h2 { font-family: var(--g-serif); font-weight: 500; font-size: 32px; margin: 0 0 6px; }
.aa-login p { color: var(--g-soft); }
.aa-login form p { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.aa-login input[type=text], .aa-login input[type=password] { border: 1px solid var(--g-line2); border-radius: 10px; padding: 11px 12px; font-size: 15px; width: 100%; }
.aa-login .login-remember label { display: flex; gap: 8px; align-items: center; flex-direction: row; }
.aa-login input[type=submit] { background: var(--g-rose); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 500; cursor: pointer; width: 100%; font-size: 16px; }
