/* -------------------------------------------------------------------------
   Cymtrack — Shared public-side styles (partner / public reports)
   ------------------------------------------------------------------------- */

/* Base layout for all public pages */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 1.5rem;
}

/* Match the previous public/_partials.php container max-width */
.container {
    max-width: 1100px;
}

/* -------------------------------------------------------------------------
   Public Short-Link Report (public/report.php)
   ------------------------------------------------------------------------- */

.ct-container {
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
}

.ct-container h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.ct-container h2 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.ct-meta {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.ct-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ct-summary-card {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.ct-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.ct-value {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Tables used in public report */
.ct-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
}

.ct-container th,
.ct-container td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.875rem;
    text-align: left;
}

.ct-container th {
    background: #f1f3f5;
    font-weight: 600;
}

.ct-container tr:nth-child(even) td {
    background: #f8f9fa;
}

.ct-section {
    margin-top: 1.5rem;
}

.ct-empty {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Links and footer for report + general public pages */
a {
    color: #0069d9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.ct-footer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #868e96;
}
