/* eGooroo add-on portal for Propel (The Barber Academy / The Hair Academy).
   Brand colour is black; only these variables and the logos change per client. */
:root {
    --brand-blue: #000000;   /* client primary: header, card header, buttons */
    --brand-green: #3a3a3a;  /* client accent: button hover (name kept for compatibility) */
    --light-bg: #f2f2f2;
}

body {
    background: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    padding: 150px 16px 0;
}

/* ---------- Header: two logos side by side with a vertical divider ---------- */
.portal-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: var(--brand-blue);
    padding: .9rem 1.5rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    z-index: 1000;
}
.brand-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: .55rem;
    text-decoration: none;
}
.brand-logos img { height: 46px; width: auto; max-width: 42vw; object-fit: contain; }
.brand-divider { flex: none; width: 1px; align-self: stretch; min-height: 46px; background: rgba(255,255,255,.55); }
.portal-header h1 { color: #fff; font-weight: 700; margin: 0; font-size: 1.35rem; }

@media (max-width: 520px) {
    body { padding-top: 120px; }
    .brand-logos { gap: .9rem; }
    .brand-logos img { height: 30px; }
    .brand-divider { min-height: 30px; }
    .portal-header h1 { font-size: 1.05rem; }
}

/* ---------- Card ---------- */
.portal-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    animation: portal-in .8s ease;
}
.portal-card-wide { max-width: 1400px; }
.portal-card-header { background: var(--brand-blue); color: #fff; padding: 2rem 1.5rem; text-align: center; }
.portal-card-header h2 { margin: 0; font-weight: 700; font-size: 1.5rem; }
.portal-card-body { padding: 2rem; text-align: center; }
.portal-card-wide .portal-card-body { text-align: left; padding: 1.5rem; }

.bookmark-btn {
    display: block; width: 100%;
    margin: .5rem 0; padding: .9rem 1rem;
    font-weight: 600; border: none; border-radius: 50px;
    background: var(--brand-blue); color: #fff; text-decoration: none;
    transition: all .3s ease;
}
.bookmark-btn:hover, .bookmark-btn:focus-visible {
    background: var(--brand-green); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,.1);
}
.bookmark-btn.outline { background: #fff; color: var(--brand-blue); border: 2px solid var(--brand-blue); }
.bookmark-btn.outline:hover { background: var(--brand-blue); color: #fff; }
.btn-tag {
    display: inline-block; margin-left: .4rem; padding: 1px 8px;
    border-radius: 50px; font-size: .72rem; font-weight: 600; vertical-align: 2px;
    background: rgba(255,255,255,.18); color: #fff;
}

.portal-footer { text-align: center; color: #666; font-size: .9rem; margin: 2rem auto; width: 100%; }

@keyframes portal-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .portal-card { animation: none; } .bookmark-btn { transition: none; } }

/* ---------- Review and results tables (Dates extender) ---------- */
.toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
    margin-bottom: 1rem;
}
.toolbar label { font-weight: 600; margin: 0; display: flex; align-items: center; gap: .5rem; }
.toolbar input[type=date], .toolbar input[type=number] {
    padding: .45rem .7rem; border: 1px solid #ccc; border-radius: .5rem; font-size: 1rem;
}
.toolbar input[type=number] { width: 7rem; }
.pill-btn {
    display: inline-block; padding: .5rem 1.4rem;
    font-weight: 600; border: 2px solid var(--brand-blue); border-radius: 50px;
    background: var(--brand-blue); color: #fff; text-decoration: none; cursor: pointer;
    transition: background .2s, color .2s;
}
.pill-btn:hover:not(:disabled) { background: var(--brand-green); border-color: var(--brand-green); color: #fff; }
.pill-btn.outline { background: #fff; color: var(--brand-blue); }
.pill-btn.outline:hover:not(:disabled) { background: var(--brand-blue); color: #fff; }
.pill-btn:disabled { opacity: .4; cursor: not-allowed; }
.check-msg { font-weight: 600; }
.check-msg.bad { color: #b02a37; }
.check-msg.good { color: #1b7a43; }

.table-search {
    width: 100%; padding: .7rem 1rem .7rem 2.6rem; margin-bottom: 1rem;
    border: 1px solid #ddd; border-radius: 50px; font-size: 1rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398l3.85 3.85a1 1 0 0 0 1.415-1.414zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/%3E%3C/svg%3E") no-repeat 1rem center;
}
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid #e5e5e5; white-space: nowrap; }
.data-table thead th { background: #f4f4f4; font-weight: 700; cursor: pointer; position: sticky; top: 0; }
.data-table thead th.sorttable_nosort { cursor: default; }
.data-table tbody tr:hover { background: #fafafa; }
.data-table tr.row-conflict td { background: #ffe1e6; }
.data-table td.is-ok { color: #1b7a43; font-weight: 600; }
.data-table td.is-err { color: #b02a37; font-weight: 600; white-space: normal; }
.data-table td.changes { white-space: normal; }
.empty-row td { text-align: center; color: #777; padding: 2rem; }

.progress-track { background: #eee; border-radius: 50px; overflow: hidden; height: 32px; margin: .5rem 0 1rem; }
.progress-fill {
    height: 100%; width: 0; background: #1b7a43; color: #fff; font-weight: 700;
    display: flex; align-items: center; justify-content: center; transition: width .3s;
}
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem; }
.results-head h3 { margin: 0; font-size: 1.3rem; font-weight: 700; }
.back-link { color: var(--brand-blue); font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
