/*body {*/
/*    background: #f8fafc;*/
/*}*/
:root{
    --primary:#1976d2;
    --success:#2e7d32;
    --warning:#f9a825;
    --danger:#d32f2f;
    --bg:#f5f7fa;
    --card:#ffffff;
    --border:#e4e7eb;
    --shadow:0 10px 24px rgba(0,0,0,.08);
    --radius:14px;
    --text:#263238;
    --muted:#90a4ae;
}

body{
    background:var(--bg);
    color:var(--text);
    font-family:
            "Segoe UI",
            Roboto,
            Helvetica,
            Arial,
            sans-serif;
}

.page-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b;
}

.page-subtitle {
    color: #64748b;
    font-size: .95rem;
}
.detail-label{
    font-size:.85rem;
    color:#6b7280;
    margin-bottom:8px;
}

.detail-value{
    font-size:1.15rem;
    font-weight:600;
    color:#1e293b;
}

.comparison-card{
    display:flex;
    background:white;
    border:1px solid #e5e7eb;
    border-radius:18px;
    overflow:hidden;
    min-height:220px;
}

.comparison-icon{
    width:90px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f8fafc;
    border-right:1px solid #e5e7eb;
}

.comparison-icon i{
    font-size:2.5rem;
    color:#3b82f6;
}

.comparison-content{
    flex:1;
    padding:20px;
}

.metric-label{
    color:#6b7280;
    font-size:.85rem;
    font-weight:600;
    margin-bottom:10px;
}

.metric-value{
    font-size:2.2rem;
    font-weight:700;
}

.metric-value span{
    font-size:1rem;
}

.metric-value.std{
    color:#2563eb;
}

.metric-value.actual{
    color:#16a34a;
}

.capture-time{
    margin-top:24px;
    color:#64748b;
    font-size:.95rem;
}

.capture-time span{
    margin-left:8px;
    color:#334155;
    font-weight:500;
}
.table-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
}

.table-modern {
    margin-bottom: 0;
}

.table-modern thead th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px;
    white-space: nowrap;
}

.table-modern tbody td {
    padding: 18px;
    vertical-align: middle;
    border-color: #eef2f7;
}

.table-modern tbody tr:hover {
    background: #f8fafc;
}

.status-created {
    background: #f1f5f9;
    color: #475569;
}

.status-first {
    background: #dbeafe;
    color: #2563eb;
}

.status-last {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-confirmed {
    background: #dcfce7;
    color: #15803d;
}

.status-completed {
    background: #475569;
    color: white;
}

.badge-status {
    font-size: .75rem;
    padding: .55rem .8rem;
    border-radius: 999px;
    font-weight: 600;
}

.btn-confirm {
    background: #22c55e;
    border: none;
    color: white;
    min-width: 120px;
}

.btn-complete {
    background: #2563eb;
    border: none;
    color: white;
    min-width: 120px;
}

.btn-disabled {
    background: #e5e7eb;
    color: #64748b;
    min-width: 120px;
}

.status-line-gray {
    border-left: 4px solid #bec0c2;
}

.status-line-blue {
    border-left: 4px solid #3b82f6;
}

.status-line-green {
    border-left: 4px solid #22c55e;
}

.pouring-row {
    cursor: pointer;
}

.pouring-row.selected td {
    background: #e5e7eb;
}

.badge-status::before {
    content: "●";
    margin-right: 6px;
    font-size: 10px;
}

.status-created::before {
    color: #6c757d;
}

.status-first::before {
    color: #0d6efd;
}

.status-last::before {
    color: #fd7e14;
}

.status-confirmed::before {
    color: #198754;
}

.status-completed::before {
    color: #6f42c1;
}
.connection-banner{
    display:none;
    justify-content:space-between;
    align-items:center;
    padding:10px;
    margin-bottom:18px;
    border-radius:10px;
    color:white;
    animation:fadeDown .35s;
}

.connection-banner.show{
    display:flex;
}
.connection-banner.error{
    background:#d32f2f;
}
.connection-banner.warning{
    background:#ff9800;
}
.connection-banner button{
    background:white;
    color:#333;
    border:none;
    border-radius:8px;
    padding:8px 18px;
    cursor:pointer;
    font-weight:bold;
}
@keyframes fadeDown{
    from{
        opacity:0;
        transform:translateY(-10px);
    }
    to{
        opacity:1;
        transform:none;
    }
}

.text-alarm {
    color: #dc3545;
    font-weight: bold;
    animation: blink 1s infinite;
}
@keyframes blink {
    50% {
        opacity: 0.3;
    }
}

.border-bottom {
    border-bottom: 1px solid #dddddd;
}