/* ===========================================================
   Excel / Hours document rendering
   =========================================================== */
.excel-report {
    display: flex;
    gap: 50px;
    font-family: Arial, sans-serif;
}

.excel-column {
    flex: 1;
}

.heading {
    font-weight: bold;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 5px;
}

.info {
    margin-bottom: 15px;
    font-size: 16px;
}

.excel-preview {
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

.excel-preview td {
    border: none;
    padding: 2px 4px;
}

.excel-document {
    font-family: Arial, sans-serif;
    max-width: 900px;
}

.excel-document h3 {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 6px;
}

.excel-document p {
    font-size: 14px;
    margin: 4px 0;
}

/* ===========================================================
   RCC Theme (matched to RCCInvitational)
   =========================================================== */
:root {
    --rcc-green: #1f3d2b;
    --rcc-gold: #b08d3c;
    --rcc-light: #f7f7f4;
    --rcc-border: #d8d8d2;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background-color: var(--rcc-light);
    font-family: Tahoma, sans-serif;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.rcc-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 12px;
}

.rcc-card {
    background: #ffffff;
    border: 1px solid var(--rcc-border);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    overflow: hidden;
    height: 100%;
}

.rcc-card-header {
    background-color: var(--rcc-green);
    color: white;
    padding: 14px 18px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rcc-card-body {
    padding: 22px;
    min-width: 0;
    min-height: 210px;
}

.rcc-title {
    color: var(--rcc-green);
    font-weight: 700;
}

.rcc-subtitle {
    color: #666;
    font-size: 1.5rem;
}

.rcc-field {
    border: 1px solid var(--rcc-border);
    border-radius: 10px;
    padding: 14px;
    background-color: #fff;
    margin-bottom: 16px;
}

.rcc-field label {
    font-weight: 600;
    color: var(--rcc-green);
    margin-bottom: 6px;
}

.btn-primary {
    background-color: var(--rcc-green);
    border-color: var(--rcc-green);
}

.btn-primary:hover {
    background-color: #ffffff;
    color: var(--rcc-green);
    border: 3px solid var(--rcc-green);
}

.rcc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    margin-bottom: 16px;
    border: 1px solid var(--rcc-green);
    border-radius: 8px;
    color: var(--rcc-green);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.rcc-back-link:hover {
    background-color: var(--rcc-green);
    color: #ffffff;
}

.rcc-back-link-inverse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    margin-bottom: 16px;
    border: 1px solid var(--rcc-green);
    border-radius: 8px;
    background-color: var(--rcc-green);
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.rcc-back-link-inverse:hover {
    background-color: #ffffff;
    color: var(--rcc-green);
}

.rcc-tight {
    margin-bottom: 4px;
}

.rcc-history-section {
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid var(--rcc-border);
    border-radius: 10px;
    background-color: #fff;
}

.rcc-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rcc-history-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--rcc-border);
}

.rcc-history-item:last-child {
    border-bottom: none;
}

.rcc-history-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.rcc-history-meta strong {
    color: var(--rcc-green);
}

.rcc-history-time {
    color: #888;
    font-size: 0.85em;
    margin-left: auto;
}

.rcc-history-notes {
    margin: 6px 0 0;
    padding: 8px 12px;
    background: var(--rcc-light);
    border-radius: 8px;
    color: #444;
}

.rcc-decision-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.rcc-decision-form label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: var(--rcc-green);
}

.rcc-decision-form .rcc-back-link-inverse {
    margin-bottom: 0;
}

.dish-search {
    position: relative;
    max-width: 400px;
    margin-bottom: 12px;
}

.dish-search input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--rcc-border);
    border-radius: 8px;
}

.dish-search input[type="text"]:focus {
    outline: none;
    border-color: var(--rcc-gold);
    box-shadow: 0 0 0 0.2rem rgba(176,141,60,0.2);
}

.dish-search-results {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    right: 0;
    margin: 2px 0 0;
    padding: 4px 0;
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--rcc-border);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.dish-search-results li {
    padding: 8px 12px;
    cursor: pointer;
}

.dish-search-results li:hover,
.dish-search-results li:focus {
    background-color: var(--rcc-light);
    color: var(--rcc-green);
}

.dish-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 10px;
    margin-bottom: 6px;
    background: #ffffff;
    border: 2px solid #b7b7ae;
    border-radius: 8px;
}

.dish-card-handle {
    cursor: grab;
    color: #999;
    padding-top: 2px;
}

.dish-card-body {
    flex: 1;
    min-width: 0;
}

.dish-card-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.dish-card-name {
    font-weight: 700;
    color: var(--rcc-green);
}

.dish-card-price {
    color: #555;
    white-space: nowrap;
}

.dish-card-price-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dish-card-dessert-icon {
    font-size: 1em;
    line-height: 1;
}

.dish-card-badge {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 3px;
    background: var(--rcc-gold);
    color: #ffffff;
    font-size: 0.62em;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 8px;
    white-space: nowrap;
}

.dish-card-description {
    margin: 1px 0 0;
    color: #666;
    font-size: 0.85em;
    line-height: 1.25;
}

.dish-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.dish-card-delete-row {
    position: relative;
    display: flex;
    align-items: center;
}

.dish-card-edit-btn,
.dish-card-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    padding: 2px 6px;
    border-radius: 6px;
}

.dish-card-edit-btn:hover,
.dish-card-delete-btn:hover {
    background-color: var(--rcc-light);
}

.dish-card-edit label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--rcc-green);
    font-size: 0.9em;
}

.dish-card-edit input[type="text"],
.dish-card-edit input[type="number"],
.dish-card-edit textarea,
.dish-card-edit select {
    display: block;
    width: 100%;
    max-width: 320px;
    margin-top: 2px;
    padding: 6px 8px;
    border: 1px solid var(--rcc-border);
    border-radius: 6px;
    font-weight: normal;
}

.dish-card-edit-actions {
    display: flex;
    gap: 8px;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #cfcfc8;
    padding: 10px 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--rcc-gold);
    box-shadow: 0 0 0 0.2rem rgba(176,141,60,0.2);
}

/* ===========================================================
   RCC Shared Site Header
   =========================================================== */
.rcc-site-header {
    background-color: #173f2a;
    border-bottom: 4px solid #d6b85a;
    margin-bottom: 28px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.rcc-site-header-content {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
}

.rcc-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background-color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.rcc-site-logo {
    display: block;
    width: auto;
    height: 70px;
    max-width: 170px;
    object-fit: contain;
}

.rcc-site-title {
    color: #ffffff;
    line-height: 1.15;
}

.rcc-site-title-main {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.rcc-site-title-sub {
    margin-top: 5px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #f1f1f1;
}

@media (max-width: 575px) {
    .rcc-site-header-content {
        min-height: 76px;
        gap: 12px;
    }

    .rcc-site-logo {
        height: 54px;
        max-width: 125px;
    }

    .rcc-site-title-main {
        font-size: 1.2rem;
    }

    .rcc-site-title-sub {
        font-size: 0.82rem;
    }
}

/* ===========================================================
   Dashboard Buttons
   =========================================================== */
.dashboard-btn {
    width: 100%;
    height: 50px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 1rem;
    font-weight: 600;

    border-radius: 8px;

    transition: all 0.2s ease-in-out;
}

.dashboard-btn-single {
    width: 220px; /* Adjust this value to make it wider or narrower */
}

.dashboard-btn:disabled,
.dashboard-btn.disabled {
    background-color: #eeeeee;
    color: #777777;
    border: 2px solid #cccccc;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 1;
}

.dashboard-btn:disabled:hover,
.dashboard-btn.disabled:hover {
    background-color: #eeeeee;
    color: #777777;
    border: 2px solid #cccccc;
}

/* ===========================================================
   Sync override toggle
   =========================================================== */
.rcc-override-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
}

.rcc-override-toggle span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rcc-green);
    white-space: nowrap;
}

.rcc-override-checkbox {
    width: 1.2em;
    height: 1.2em;
    margin: 0;
    accent-color: var(--rcc-green);
    border: 2px solid var(--rcc-green);
    border-radius: 4px;
    cursor: pointer;
}

.rcc-modal-header {
    background-color: var(--rcc-green);
    color: #ffffff;
}

.rcc-modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ===========================================================
   Pool status badge (non-interactive)
   =========================================================== */
.pool-status-badge {
    width: 100%;
    padding: 0.75rem 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: #000000;

    pointer-events: none;
    user-select: none;
}

.pool-status-value {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--rcc-green);
}

.pool-status-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rcc-green);
    margin-top: 0.15rem;
}

/* ===========================================================
   Login page
   =========================================================== */
.rcc-login-body {
    background-color: var(--rcc-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.rcc-login-page {
    flex: 1;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 16px 40px;
    text-align: center;
}

.rcc-login-title {
    color: var(--rcc-green);
    font-weight: 800;
    font-size: 2rem;
}

.rcc-login-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 28px;
}

.rcc-login-card {
    text-align: left;
}

.rcc-login-footer {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    padding: 16px;
    border-top: 1px solid var(--rcc-border);
}
