/* ============================================================================  
   style.css – BienenWaagenManager Web-UI  
   Modern, Mobile-First, konsistentes Light-Theme  
   ============================================================================ */

/* --------------------------------------------------------------------------  
   Sprachwahl  
   -------------------------------------------------------------------------- */  
.lang-switch {  
    margin-left: auto;  
    display: flex;  
    gap: 4px;  
}

.lang-select {    
    padding: 4px 10px;  
    font-size: 13px;  
    font-weight: 600;  
    background: #e8edf2;  
    border: 1px solid #ccc;  
    border-radius: 6px;  
    cursor: pointer;  
    color: #2d527c;  
    -webkit-appearance: none;  
    appearance: none;  
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23888' d='M5 7L1 3h8z'/%3E%3C/svg%3E");  
    background-repeat: no-repeat;  
    background-position: right 6px center;  
    padding-right: 22px;  
} 

.lang-select:focus  {   
    outline: none;  
    border-color: #3b6ea5;  
    box-shadow: 0 0 0 3px rgba(59, 110, 165, 0.15); 
}

.lang-btn {  
    padding: 4px 10px;  
    font-size: 12px;  
    font-weight: 600;  
    background: #e8edf2;  
    border: 1px solid #ccc;  
    border-radius: 6px;  
    cursor: pointer;  
    min-width: 36px;  
    color: #5a7a9b;  
    transition: all 0.2s ease;  
}

.lang-btn:hover {  
    background: #d5d8dc;  
}

.lang-btn.active {  
    background: #3b6ea5;  
    color: white;  
    border-color: #3b6ea5;  
}  

/* --------------------------------------------------------------------------  
   Hilfe-Button  
   -------------------------------------------------------------------------- */  
.help-btn {   
    padding: 4px 8px;  
    font-size: 13px;  
    background: #e8edf2;  
    border: 1px solid #ccc;  
    border-radius: 6px;  
    cursor: pointer;  
    color: #5a7a9b;  
    transition: all 0.2s ease;  
    display: flex;  
    align-items: center;  
    min-width: 30px;  
    justify-content: center;  
}

.help-btn:hover {   
    background: #3b6ea5;  
    color: white;  
    border-color: #3b6ea5;  
}

/* --------------------------------------------------------------------------  
   Basis  
   -------------------------------------------------------------------------- */  
* {  
    box-sizing: border-box;  
}

body {  
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;  
    font-size: 16px;  
    line-height: 1.5;  
    color: #333;  
    background-color: #f0f2f5;  
    margin: 0;  
    padding: 12px;  
    max-width: 900px;  
    margin: 0 auto;  
    -webkit-text-size-adjust: 100%;  
}

h1 {  
    display: flex;  
    align-items: center;  
    gap: 10px;  
    color: #2d527c;  
    border-bottom: 3px solid #f4a100;  
    padding-bottom: 10px;  
    margin-bottom: 10px;  
    font-size: 1.4em;  
}

h1 svg {  
    flex-shrink: 0;  
}

h2 {  
    color: #2d527c;  
    margin-top: 24px;  
    margin-bottom: 12px;  
    font-size: 1.2em;  
}

h3 {  
    color: #3b6ea5;  
    margin-top: 16px;  
    margin-bottom: 8px;  
    font-size: 1.0em;  
}

hr {  
    border: none;  
    border-top: 1px solid #e0e0e0;  
    margin: 16px 0;  
}

/* --------------------------------------------------------------------------  
   Version  
   -------------------------------------------------------------------------- */  
.version-text {  
    color: #888;  
    font-size: 12px;  
    margin-bottom: 12px;  
}

/* --------------------------------------------------------------------------  
   Navigation – Segmented Control (Pill-Style, Mobile-optimiert)  
   -------------------------------------------------------------------------- */  
nav {  
    margin-bottom: 12px;  
    display: flex;  
    background: #e8edf2;  
    border-radius: 10px;  
    padding: 3px;  
    gap: 3px;  
    position: sticky;  
    top: 0;  
    z-index: 100;  
}

.nav-btn {  
    flex: 1;  
    padding: 10px 6px;  
    border: none;  
    background: transparent;  
    color: #5a7a9b;  
    border-radius: 8px;  
    cursor: pointer;  
    font-size: 13px;  
    font-weight: 600;  
    transition: all 0.25s ease;  
    text-align: center;  
    white-space: nowrap;  
}

.nav-btn:hover {  
    background: rgba(255, 255, 255, 0.5);  
}

.nav-btn.active {  
    background: white;  
    color: #2d527c;  
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);  
}

/* Mobile: groessere Touch-Targets + sticky Nav */  
@media (max-width: 600px) {  
    nav {  
        border-radius: 8px;  
        flex-wrap: wrap;  
    }

    .nav-btn {  
        padding: 12px 4px;  
        font-size: 12px;  
        min-width: 0;  
        flex: 1 1 45%;  
    }  
}

/* --------------------------------------------------------------------------  
   Seiten  
   -------------------------------------------------------------------------- */  
.page {  
    display: none;  
}

.page.active {  
    display: block;  
}

/* --------------------------------------------------------------------------  
   Cards  
   -------------------------------------------------------------------------- */  
.card {  
    background: white;  
    padding: 16px;  
    border-radius: 10px;  
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);  
    margin-bottom: 12px;  
}

.card h3 {  
    margin-top: 0;  
}

/* --------------------------------------------------------------------------  
   Status-Grid  
   -------------------------------------------------------------------------- */  
.status-grid {  
    display: grid;  
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));  
    gap: 10px;  
    margin-bottom: 10px;  
}

/* --------------------------------------------------------------------------  
   Config-Gruppen (Accordion mit <details>)  
   -------------------------------------------------------------------------- */  
.config-group {  
    background: white;  
    border-radius: 10px;  
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);  
    margin-bottom: 10px;  
    overflow: hidden;  
}

/* Der Kind-Kombinator ist hier entscheidend: .config-group enthaelt
   verschachtelte <details> (.ref-details und weitere .config-group).
   Mit einem Nachfahren-Selektor griffe .config-group[open] summary::before
   auch auf die inneren Pfeile zu - die haetten sich dann nach dem Zustand
   der AEUSSEREN Gruppe gedreht statt nach ihrem eigenen. */
.config-group > summary {
    padding: 14px 16px;
    font-weight: bold;
    font-size: 15px;
    color: #2d527c;
    cursor: pointer;
    background: #f8f9fb;
    border-bottom: 1px solid #e8eaed;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    -webkit-user-select: none;
}

.config-group > summary::-webkit-details-marker {
    display: none;
}

.config-group > summary::before {
    content: "\25B6";
    font-size: 11px;
    color: #888;
    transition: transform 0.2s ease;
}

.config-group[open] > summary::before {
    transform: rotate(90deg);
}

.config-group > summary:hover {
    background: #eef1f5;
}

.config-inner {
    padding: 14px 16px;
}

/* Nested details fuer Referenztabellen */
.ref-details {
    margin-top: 10px;
    margin-bottom: 10px;
}

.ref-details > summary {
    font-size: 13px;
    color: #666;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    -webkit-user-select: none;
}

.ref-details > summary::-webkit-details-marker {
    display: none;
}

.ref-details > summary::before {
    content: "\25B6";
    font-size: 10px;
    color: #999;
    transition: transform 0.2s ease;
}

.ref-details[open] > summary::before {
    transform: rotate(90deg);
}

/* --------------------------------------------------------------------------  
   Formular-Elemente  
   -------------------------------------------------------------------------- */  
.field-row {  
    margin-bottom: 12px;  
    display: flex;  
    flex-wrap: wrap;  
    align-items: center;  
    gap: 8px;  
}

.field-row label {  
    min-width: 100px;  
    color: #555;  
    font-weight: 500;  
}

label {  
    font-weight: 500;  
    color: #555;  
}

input[type="text"],  
input[type="number"],  
input[type="password"],  
input[type="datetime-local"] {  
    padding: 8px 10px;  
    border: 1px solid #ccc;  
    border-radius: 8px;  
    font-size: 14px;  
    flex: 1;  
    min-width: 120px;  
    max-width: 300px;  
    background: #fff;  
    color: #333;  
    -webkit-appearance: none;  
}

input[type="text"]:focus,  
input[type="number"]:focus,  
input[type="password"]:focus,  
input[type="datetime-local"]:focus {  
    outline: none;  
    border-color: #3b6ea5;  
    box-shadow: 0 0 0 3px rgba(59, 110, 165, 0.15);  
}

input[type="checkbox"] {  
    width: 20px;  
    height: 20px;  
    margin-right: 6px;  
    vertical-align: middle;  
    accent-color: #3b6ea5;  
}

select {  
    padding: 8px 10px;  
    border: 1px solid #ccc;  
    border-radius: 8px;  
    font-size: 14px;  
    background: white;  
    color: #333;  
    cursor: pointer;  
    -webkit-appearance: none;  
    appearance: none;  
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");  
    background-repeat: no-repeat;  
    background-position: right 10px center;  
    padding-right: 30px;  
}

select:focus {  
    outline: none;  
    border-color: #3b6ea5;  
    box-shadow: 0 0 0 3px rgba(59, 110, 165, 0.15);  
}

/* --------------------------------------------------------------------------  
   Buttons  
   -------------------------------------------------------------------------- */  
button {  
    padding: 10px 16px;  
    border: none;  
    background: #3b6ea5;  
    color: white;  
    border-radius: 8px;  
    cursor: pointer;  
    font-size: 14px;  
    font-weight: 500;  
    transition: background-color 0.2s ease, transform 0.1s ease;  
    white-space: nowrap;  
    -webkit-tap-highlight-color: transparent;  
}

button:hover {  
    background: #2d527c;  
}

button:active {  
    transform: scale(0.97);  
}

.btn-accent {  
    background: #f4a100;  
    font-weight: bold;  
    padding: 11px 20px;  
}

.btn-accent:hover {  
    background: #d48f00;  
}

.btn-delete {  
    background: #dc3545;  
    color: white;  
    border: none;  
    padding: 6px 12px;  
    border-radius: 6px;  
    cursor: pointer;  
    font-size: 12px;  
}

.btn-delete:hover {  
    background: #c82333;  
}

.btn-delete:disabled {  
    background: #ccc;  
    cursor: not-allowed;  
}

/* --------------------------------------------------------------------------  
   Tabellen  
   -------------------------------------------------------------------------- */  
.data-table {  
    width: 100%;  
    border-collapse: collapse;  
    margin-top: 12px;  
    font-size: 13px;  
}

.data-table th,  
.data-table td {  
    padding: 8px 10px;  
    border: 1px solid #e0e0e0;  
}

.data-table th {  
    background: #3b6ea5;  
    color: white;  
    font-weight: 600;  
    font-size: 12px;  
}

.data-table tbody tr:nth-child(even) {  
    background: #f9f9f9;  
}

.data-table input[type="number"] {  
    max-width: 120px;  
}

/* Info-Tabellen (LoRa-Status etc.) */  
.info-table {  
    width: 100%;  
    border-collapse: collapse;  
}

.info-table td {  
    padding: 4px 0;  
}

/* Referenz-Tabellen */  
.ref-table {  
    width: 100%;  
    border-collapse: collapse;  
    margin-top: 8px;  
    font-size: 13px;  
}

.ref-table th {  
    background: #eef1f5;  
    padding: 5px 8px;  
    border: 1px solid #ddd;  
    font-weight: 600;  
}

.ref-table td {  
    padding: 5px 8px;  
    border: 1px solid #ddd;  
}

.compact-live td {  
    padding: 3px 8px 3px 0;  
    white-space: nowrap;  
}

.compact-live td:nth-child(3) {  
    padding-left: 16px;  
}

/* --------------------------------------------------------------------------  
   Hilfsklassen  
   -------------------------------------------------------------------------- */  
.center {  
    text-align: center;  
}

.right {  
    text-align: right;  
}

.mono {  
    font-family: "SF Mono", "Courier New", monospace;  
}

.bold {  
    font-weight: bold;  
}

/* --------------------------------------------------------------------------  
   Status-Badges  
   -------------------------------------------------------------------------- */  
.status-ok {  
    background: #28a745;  
    color: white;  
    padding: 2px 8px;  
    border-radius: 12px;  
    font-size: 12px;  
    display: inline-block;  
}

.status-none {  
    background: #dc3545;  
    color: white;  
    padding: 2px 8px;  
    border-radius: 12px;  
    font-size: 12px;  
    display: inline-block;  
}

.status-text-ok {  
    color: #28a745;  
    font-weight: bold;  
}

.status-text-error {  
    color: #dc3545;  
    font-weight: bold;  
}

.text-muted {  
    color: #999;  
}

/* --------------------------------------------------------------------------  
   Pre / Code-Boxen  
   -------------------------------------------------------------------------- */  
#livebox,  
#wiz_box {  
    background: #f4f5f7;  
    border: 1px solid #e0e2e6;  
    border-radius: 8px;  
    padding: 12px;  
    font-family: "SF Mono", "Courier New", monospace;  
    font-size: 12px;  
    overflow-x: auto;  
    white-space: pre-wrap;  
    word-wrap: break-word;  
    margin: 10px 0;  
}

/* --------------------------------------------------------------------------  
   Hinweise  
   -------------------------------------------------------------------------- */  
small {  
    color: #888;  
    font-size: 12px;  
    display: block;  
    margin-top: 4px;  
    margin-bottom: 10px;  
}

/* --------------------------------------------------------------------------  
   Anleitung (Wizard)  
   -------------------------------------------------------------------------- */  
ol {  
    background: #fdf8ec;  
    padding: 14px 14px 14px 32px;  
    border-radius: 8px;  
    border-left: 4px solid #f4a100;  
    margin: 10px 0;  
}

ol li {  
    margin-bottom: 6px;  
}

/* --------------------------------------------------------------------------  
   Glaettungsparameter  
   -------------------------------------------------------------------------- */  
.config-desc {  
    color: #888;  
    font-size: 0.85em;  
    margin: -4px 0 12px 0;  
}

.config-row {  
    display: flex;  
    align-items: flex-start;  
    justify-content: space-between;  
    margin-bottom: 14px;  
    gap: 12px;  
}

.config-row label {  
    flex: 1;  
    font-weight: 500;  
    font-size: 0.92em;  
    color: #555;  
}

.config-row label .hint {  
    display: block;  
    font-weight: 400;  
    font-size: 0.8em;  
    color: #999;  
    margin-top: 2px;  
}

.slider-group {  
    display: flex;  
    align-items: center;  
    gap: 8px;  
    min-width: 180px;  
}

.slider-group input[type="range"] {  
    flex: 1;  
    accent-color: #f4a100;  
    height: 6px;  
}

.slider-val {  
    min-width: 36px;  
    text-align: right;  
    font-family: "SF Mono", "Courier New", monospace;  
    font-size: 0.95em;  
    color: #f4a100;  
    font-weight: 600;  
}

.input-num {  
    width: 80px;  
    padding: 6px 8px;  
    border: 1px solid #ccc;  
    border-radius: 8px;  
    background: #fff;  
    color: #333;  
    font-size: 0.95em;  
    text-align: right;  
}

.input-num:focus {  
    outline: none;  
    border-color: #3b6ea5;  
    box-shadow: 0 0 0 3px rgba(59, 110, 165, 0.15);  
}

.config-divider {  
    border: none;  
    border-top: 1px solid #e0e0e0;  
    margin: 16px 0;  
}

.config-buttons {  
    display: flex;  
    gap: 10px;  
    margin-top: 16px;  
}

.btn-secondary {  
    background: #e8eaed !important;  
    color: #555 !important;  
}

.btn-secondary:hover {  
    background: #d5d8dc !important;  
}

.save-status {  
    margin-top: 8px;  
    font-size: 0.85em;  
    min-height: 1.2em;  
}

.save-status.ok  { color: #28a745; }  
.save-status.err { color: #dc3545; }

/* --------------------------------------------------------------------------  
   Sync-Reconnect-Hinweis  
   -------------------------------------------------------------------------- */  
.sync-reconnect-hint {  
    background: #fff8e1;  
    border: 1px solid #f4a100;  
    border-radius: 8px;  
    padding: 10px 14px;  
    margin-top: 8px;  
    font-size: 0.85em;  
    color: #8a6d00;  
    display: none;  
}

/* --------------------------------------------------------------------------  
   OTA-Fortschrittsbalken  
   -------------------------------------------------------------------------- */  
progress {  
    width: 100%;  
    height: 8px;  
    border-radius: 4px;  
    appearance: none;  
    -webkit-appearance: none;  
}

progress::-webkit-progress-bar {  
    background: #e8eaed;  
    border-radius: 4px;  
}

progress::-webkit-progress-value {  
    background: #3b6ea5;  
    border-radius: 4px;  
}

/* --------------------------------------------------------------------------  
   Responsive – Mobile-First Anpassungen  
   -------------------------------------------------------------------------- */  
@media (max-width: 600px) {  
    body {  
        padding: 8px;  
        font-size: 15px;  
    }

    h1 {  
        font-size: 1.2em;  
    }

    h2 {  
        font-size: 1.1em;  
    }

    .field-row {  
        flex-direction: column;  
        align-items: stretch;  
    }

    input[type="text"],  
    input[type="number"],  
    input[type="password"],  
    input[type="datetime-local"] {  
        max-width: 100%;  
        width: 100%;  
    }

    select {  
        width: 100%;  
    }

    button {  
        width: 100%;  
        margin-top: 4px;  
        padding: 12px 16px;  
    }

    .config-buttons {  
        flex-direction: column;  
    }

    .data-table {  
        font-size: 11px;  
    }

    .data-table th,  
    .data-table td {  
        padding: 5px 4px;  
    }

    /* Glaettungsparameter: untereinander statt nebeneinander */  
    .config-row {  
        flex-direction: column;  
        gap: 6px;  
    }

    .slider-group {  
        min-width: 100%;  
    }

    .input-num {  
        width: 100%;  
    }

    .config-group > summary {  
        padding: 12px 14px;  
        font-size: 14px;  
    }

    .config-inner {  
        padding: 12px 14px;  
    }

    .card {  
        padding: 12px;  
    }

    /* Kompakte Live-Tabelle */  
    .compact-live td {  
        padding: 2px 6px 2px 0;  
        font-size: 13px;  
    }

    .compact-live td:nth-child(3) {  
        padding-left: 10px;  
    }

    /* Scroll fuer breite Tabellen */  
    .table-scroll {  
        overflow-x: auto;  
        -webkit-overflow-scrolling: touch;  
    }  
}

/* Tablets */  
@media (min-width: 601px) and (max-width: 900px) {  
    body {  
        padding: 16px;  
    }  
}  

/* --------------------------------------------------------------------------  
   Live-Status Kacheln (Grid statt Tabelle)  
   -------------------------------------------------------------------------- */  
.live-grid {  
    display: grid;  
    grid-template-columns: repeat(2, 1fr);  
    gap: 8px;  
    margin-bottom: 12px;  
}

.live-tile {  
    background: #f8f9fb;  
    border-radius: 10px;  
    padding: 10px 12px;  
    border: 1px solid #e8eaed;  
    display: flex;  
    justify-content: space-between;  
    align-items: center;  
}

.live-label {  
    font-size: 12px;  
    color: #888;  
    font-weight: 600;  
    text-transform: uppercase;  
    letter-spacing: 0.3px;  
}

.live-value {  
    font-size: 1.05em;  
    font-weight: 600;  
    font-family: "SF Mono", "Courier New", monospace;  
    color: #2d527c;  
}

/* Mobile: Kacheln etwas kompakter */  
@media (max-width: 600px) {  
    .live-grid {  
        gap: 6px;  
    }

    .live-tile {  
        padding: 8px 10px;  
    }

    .live-label {  
        font-size: 11px;  
    }

    .live-value {  
        font-size: 0.95em;  
    }  
}

/* --------------------------------------------------------------------------  
   Fade-Animation beim Aufklappen von Config-Groups  
   -------------------------------------------------------------------------- */  
.config-group .config-inner {  
    animation: fadeSlideIn 0.2s ease;  
}

@keyframes fadeSlideIn {  
    from { opacity: 0; transform: translateY(-4px); }  
    to   { opacity: 1; transform: translateY(0); }  
}

/* --------------------------------------------------------------------------  
   Subtile Hover-Effekte auf Cards  
   -------------------------------------------------------------------------- */  
.card {  
    transition: box-shadow 0.2s ease;  
}

.card:hover {  
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);  
}

/* --------------------------------------------------------------------------  
   Gewichte-Tabelle im Dashboard: abgerundeter Stil  
   -------------------------------------------------------------------------- */  
.weight-card {  
    background: #f8f9fb;  
    border-radius: 10px;  
    border: 1px solid #e8eaed;  
    padding: 10px 14px;  
    margin-bottom: 12px;  
}

.weight-card h3 {  
    margin-top: 0;  
    margin-bottom: 8px;  
    font-size: 0.95em;  
}

.weight-card table {  
    width: 100%;  
}

.weight-card td {  
    padding: 3px 8px 3px 0;  
    white-space: nowrap;  
}

/* --------------------------------------------------------------------------  
   RTC-Bereich: kompakter  
   -------------------------------------------------------------------------- */  
.rtc-card {  
    background: #f8f9fb;  
    border-radius: 10px;  
    border: 1px solid #e8eaed;  
    padding: 10px 14px;  
}

.rtc-card summary {  
    font-size: 13px;  
    color: #666;  
    cursor: pointer;  
}  

/* --------------------------------------------------------------------------  
   Toast-Benachrichtigungen (ersetzt alert())  
   -------------------------------------------------------------------------- */  
.toast {  
    position: fixed;  
    bottom: 20px;  
    left: 50%;  
    transform: translateX(-50%) translateY(100px);  
    padding: 12px 24px;  
    border-radius: 10px;  
    font-size: 14px;  
    font-weight: 500;  
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);  
    z-index: 9999;  
    opacity: 0;  
    transition: transform 0.3s ease, opacity 0.3s ease;  
    max-width: 90%;  
    text-align: center;  
    pointer-events: none;  
    line-height: 1.4;  
    white-space: pre-line;  
}

.toast.show {  
    transform: translateX(-50%) translateY(0);  
    opacity: 1;  
    pointer-events: auto;  
}

.toast.success {  
    background: #28a745;  
    color: white;  
}

.toast.error {  
    background: #dc3545;  
    color: white;  
}

.toast.info {  
    background: #2d527c;  
    color: white;  
}

.toast.warn {  
    background: #f4a100;  
    color: #333;  
}

/* Mobile: Toast etwas breiter */  
@media (max-width: 600px) {  
    .toast {  
        bottom: 12px;  
        max-width: 95%;  
        font-size: 13px;  
        padding: 10px 18px;  
    }  
}  

/* --------------------------------------------------------------------------  
   Status-Dots (farbige Indikatoren neben Live-Werten)  
   -------------------------------------------------------------------------- */  
.live-tile .live-value::before {  
    content: '';  
    display: inline-block;  
    width: 8px;  
    height: 8px;  
    border-radius: 50%;  
    margin-right: 6px;  
    vertical-align: middle;  
    background: #ccc;  
    transition: background-color 0.3s ease;  
}

.live-tile .live-value.status-text-ok::before {  
    background: #28a745;  
}

.live-tile .live-value.status-text-error::before {  
    background: #dc3545;  
}

.live-tile .live-value.text-muted::before {  
    background: #ccc;  
}

.live-tile .live-value.mono::before {  
    background: #3b6ea5;  
}  

/* ── Zeitplan-Dropdowns (WebUI V1_14_00) ───────────────────── */
.sched-table select {
    min-width: 150px;
}

.sched-table select:disabled {
    opacity: 0.5;
}

.sched-astro-hint {
    color: #888;
    margin-top: 4px;
}

.sched-custom {
    display: inline-block;
    margin-top: 4px;
}
