﻿.myflock-card {
    background-color: white;
    border: 1px solid red;
    border-radius: 5px;
    text-align: center;
    height: 100%;
    width: 100%;
    padding: 1em;
}

.myflock-card-inactive {
    background-color: #f2f2f2;
    border: 1px solid red;
    border-radius: 5px;
    text-align: center;
    height: 100%;
    width: 100%;
    padding: 1em;
}

.myflock-card .inline {
    padding: 0.5em;
    display: block;
}

.myflock-card-inactive .inline {
    padding: 0.5em;
    display: block;
}

.myflock-select {
    border-color: black;
    border-radius: 25px;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
}

.dashboard-icon {
    width: 100%;
    max-width: 96px;
}

.genetex-checkbox {
    padding-top: 0.5rem;
    padding-right: 0.5rem;
}

.genetex-checkbox .el-checkbox__input {
        zoom: 1.5;
    }

.genetex-checkbox .el-checkbox__label {
        zoom: 1.2;
    }

/* Flock Dashboard Progress Circles */
.flock-percentage-graphs {
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 10px;
}

/* Flock Dashboard Container - Main wrapper for lamb count and metrics */
.flock-dashboard-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 20px 0;
}

/* Lamb count section - left side */
.lamb-count-section {
    flex: 0 0 auto;
    padding: 10px;
    min-width: fit-content;
}

/* Metrics scroll container - right side with horizontal scroll on smaller devices */
.metrics-scroll-container {
    flex: 1 1 auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Individual metric item */
.metric-item {
    flex: 0 0 100px;
    text-align: center;
    white-space: nowrap;
}

/* Metric label - allows text wrapping */
.metric-label {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: normal;
    width: 100px;
}

/* Square line caps for all progress circles */
.metric-progress .el-progress__text {
    font-weight: bold !important;
}

.metric-progress .el-progress-circle__path {
    stroke-linecap: square !important;
}
    
.metric-color-red .el-progress__text {
    color: #e91e63 !important;
}

.metric-color-red .el-progress-circle__path {
    stroke: #e91e63 !important;
}

.metric-color-yellow .el-progress__text {
    color: #ff9800 !important;
}

.metric-color-yellow .el-progress-circle__path {
    stroke: #ff9800 !important;
}
.metric-color-green {
    .el-progress__text {
        color: #4caf50 !important;
    }
    .el-progress-circle__path {
        stroke: #4caf50 !important;
    }
}

@media (max-width: 767px) {
    .myflock-card {
        background-color: white;
        border: 1px solid red;
        border-radius: 5px;
        text-align: left;
        height: 100%;
        width: 100%;
        padding: 1em;
    }

    .myflock-card-inactive {
        background-color: #f2f2f2;
        border: 1px solid red;
        border-radius: 5px;
        text-align: left;
        height: 100%;
        width: 100%;
        padding: 1em;
    }

    .myflock-card .inline {
        display: inline-block;
    }

    .dashboard-icon {
        max-width: 40px;
    }

    .genetex-mobile-icon {
        max-width: 150px;
    }

    .myflock-card-inactive .inline {
        display: inline-block;
    }

    #lambing-user-agreement-modal .el-checkbox__label {
        display: initial;
    }

    #lambing-user-agreement-modal .el-checkbox {
        white-space: normal;
    }
    
    /* Responsive flock dashboard layout */
    .flock-dashboard-container {
        flex-direction: column;
        gap: 20px;
        margin: 0;
    }

    .flock-percentage-graphs {
        padding: 2px;
    }
    
    .lamb-count-section {
        flex: 1 1 auto;
        width: 100%;
        order: -1; /* Move lamb count above metrics on mobile */
    }
    
    .lamb-count-items {
        flex-direction: row !important;
        gap: 10px !important;
    }
    
    .metrics-scroll-container {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
}