/* Gratuity Calculator — page-specific rules only. Shared UI comes from tools-common.css. */

.grat-hint {
    font-size: 12px;
    color: var(--text-light);
    margin: 6px 0 0;
    line-height: 1.5;
}

.grat-empty i { display: block; }

.grat-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.grat-total {
    margin-top: 18px;
    padding: 22px 20px;
    background: #eef0ff;
    border-radius: 12px;
    text-align: center;
}

.grat-total-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grat-total-value {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-top: 6px;
}

.grat-total-value .grat-cur {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-medium);
}

.grat-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.6;
}

.grat-note i { margin-top: 2px; }

.grat-note-warn {
    background: #fff4e5;
    color: #8a5300;
    border: 1px solid #ffd699;
}

.grat-note-info {
    background: #e8f1ff;
    color: #1c4e8a;
    border: 1px solid #b9d4ff;
}

.grat-stats {
    margin-top: 20px;
}

.grat-stats .stat-number {
    font-size: 22px;
}

.grat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 8px;
}

.grat-table th,
.grat-table td {
    padding: 10px 12px;
    text-align: start;
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
}

.grat-table th {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.grat-table td:first-child,
.grat-table th:first-child {
    white-space: normal;
    min-width: 130px;
}

.grat-table .grat-total-row td {
    font-weight: 700;
    color: var(--text-dark);
    border-top: 2px solid var(--border-light);
    border-bottom: none;
}

.grat-disclaimer {
    margin-top: 20px;
    font-size: 12.5px;
    color: var(--text-light);
    line-height: 1.6;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.grat-disclaimer i { color: #c98a00; margin-inline-end: 4px; }

@media (max-width: 768px) {
    .grat-total-value { font-size: 32px; }
}

@media print {
    .grat-actions { display: none; }
}
