/* UVM Branding Styles */
/* Fonts are imported in _Layout; apply here */
.uvm-body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    color: #00313C; /* Vermont Slate */
    background-color: #F7F7F7; /* Morning Fog */
}

.uvm-header {
    background-color: #FFFFFF;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.uvm-logo {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #154734 !important; /* Catamount Green */
}

/*20260603 item 13 — Home/Summary tab labels: match navbar brand (UVM Soil Test) size.*/
/*20260603 — segmented tab bar: clear active vs inactive (My Orders / Visible Orders).*/
.uvm-summary-tab-bar {
    display: block;
    max-width: 100%;
    padding: 0.5rem 0.65rem;
    background: linear-gradient(180deg, #eef3f1 0%, #e4ebe8 100%);
    border: 1px solid #cdd8d3;
    border-radius: 0.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.uvm-summary-order-tabs {
    list-style: none;
    padding-left: 0;
}

.uvm-summary-order-tabs .nav-item {
    margin: 0;
}

.uvm-summary-order-tabs .nav-link.uvm-summary-tab-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: #4a6b62;
    background: #ffffff;
    border: 2px solid #c5d4ce;
    border-radius: 0.55rem;
    padding: 0.55rem 1.15rem 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.uvm-summary-order-tabs .nav-link.uvm-summary-tab-btn:hover:not(.active) {
    color: #00313c;
    border-color: #489fdf;
    box-shadow: 0 2px 6px rgba(72, 159, 223, 0.2);
}

.uvm-summary-order-tabs .nav-link.uvm-summary-tab-btn:focus-visible {
    outline: 3px solid #489fdf;
    outline-offset: 2px;
}

.uvm-summary-order-tabs .nav-link.uvm-summary-tab-btn.active {
    color: #ffffff;
    background: linear-gradient(180deg, #1a5c45 0%, #154734 100%);
    border-color: #0f3528;
    box-shadow: 0 0.2rem 0.55rem rgba(21, 71, 52, 0.35);
    transform: translateY(-1px);
}

.uvm-nav {
    border-bottom: 1px solid #DEE2E6;
}

.uvm-link {
    color: #489FDF !important; /* Clear Sky for links */
    transition: color 0.2s;
}

    .uvm-link:hover {
        color: #DC582A !important; /* Old Mill on hover */
    }

.uvm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    background-color: #FFFFFF;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

/*20260901 per item 59 — Home/Summary: wider pane + denser table*/
.uvm-container-wide {
    max-width: 1600px;
    width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
}

.uvm-summary-table {
    font-size: 0.8125rem;
}

.uvm-summary-table th,
.uvm-summary-table td {
    white-space: nowrap;
    vertical-align: middle;
    padding: 0.35rem 0.45rem;
}

.uvm-summary-table td.uvm-summary-ordertype {
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    font-weight: 600;
    color: #154734; /* Catamount Green */
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

.btn-primary {
    background-color: #FFD100; /* Gold */
    border-color: #FFD100;
    color: #154734; /* Green text on gold */
    font-weight: 500;
}

    .btn-primary:hover {
        background-color: #154734;
        border-color: #154734;
        color: #FFD100;
    }

.table {
    --bs-table-bg: #FFFFFF;
    --bs-table-color: #00313C;
}

    .table thead th {
        background-color: #154734;
        color: #FFFFFF;
        font-family: 'Lora', serif;
        font-weight: 600;
    }

.pagination .page-link {
    color: #489FDF;
}

.pagination .page-item.active .page-link {
    background-color: #FFD100;
    border-color: #FFD100;
    color: #154734;
}

.form-control, .form-select {
    border: 1px solid #00313C;
    color: #00313C;
}

    .form-control:focus, .form-select:focus {
        border-color: #489FDF;
        box-shadow: 0 0 0 0.25rem rgba(72, 159, 223, 0.25);
    }

.uvm-footer {
    background-color: #154734;
    color: #FFFFFF;
    padding: 1rem 0;
    text-align: center;
    margin-top: 2rem;
}

/* Specific overrides for Identity pages (Login, Register, etc.) */
.text-danger, .invalid-feedback {
    color: #DC582A !important; /* Old Mill for errors */
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: #154734;
}

.btn-secondary { /* For cancel/back buttons */
    background-color: #00313C;
    border-color: #00313C;
    color: #FFFFFF;
}

    .btn-secondary:hover {
        background-color: #489FDF;
        border-color: #489FDF;
        color: #FFFFFF;
    }

/* Farm Information panel (WebOrderHeaders — _OrderGrowerFields): collapse chevron */
#farmInfoToggle .farm-info-chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.35em 0 0.35em 0.5em;
    border-color: transparent transparent transparent #154734;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

#farmInfoToggle[aria-expanded="true"] .farm-info-chevron {
    transform: rotate(90deg);
}

/*20260701 item 33 — header profile icon after Hello email*/
.uvm-profile-icon-link {
    line-height: 1;
}

.uvm-profile-icon-link:hover .uvm-profile-icon {
    color: #489FDF;
}

.uvm-profile-icon {
    display: block;
}

/*20260909 per item 71b — recs amounts table matches rec text box width*/
/*20260909 per item 74 — header, amounts, and recs text match Calculated crops names (.small / 0.875em)*/
.recs-display {
    width: 100%;
    font-size: 0.875em;
}

.recs-display .recs-amounts-table thead th,
.recs-display .recs-amounts-table td {
    font-size: inherit;
}

.recs-display .js-rec-text {
    font-size: inherit;
}

/*20260909 — Additional Crop Recommendations ~2/3 of previous auto width; Calculated crops gets the rest*/
.reports-samples-table {
    table-layout: fixed;
    width: 100%;
}

.reports-samples-table th.reports-col-sample,
.reports-samples-table td.reports-col-sample {
    width: 10%;
    vertical-align: top;
}

.reports-samples-table th.reports-col-lab,
.reports-samples-table td.reports-col-lab {
    width: 8%;
    vertical-align: top;
    white-space: nowrap;
}

.reports-samples-table th.reports-col-btns,
.reports-samples-table td.reports-col-btns {
    width: 12%;
    vertical-align: top;
}

.reports-btn-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
}

.reports-btn-stack .btn {
    width: 100%;
}

.reports-samples-table th.reports-col-crops,
.reports-samples-table td.reports-col-crops {
    width: 27%;
    white-space: normal;
    overflow-wrap: break-word;
}

.reports-samples-table th.reports-col-recs,
.reports-samples-table td.reports-col-recs {
    width: 43%;
}

.reports-samples-table .js-crop-rec-form {
    min-width: 0;
}

.reports-samples-table .js-crop-rec-select {
    min-width: 0;
    flex: 1 1 8rem;
    max-width: 16rem;
}

.recs-display .recs-amounts-table {
    width: 100%;
    max-width: none;
    table-layout: fixed;
}

/*20260909 per item 71a — gold Get Recs looks active unless disabled is obvious*/
.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #e8e8e8;
    border-color: #c5c5c5;
    color: #6c757d;
    opacity: 1;
}

/*20260909 per item 78 — Login prompt: one line, slightly smaller than former h3 (1.75rem)*/
.login-please {
    font-family: 'Lora', serif;
    font-weight: 600;
    color: #154734;
    font-size: 1.35rem;
    line-height: 1.2;
    margin-top: 1em;
    margin-bottom: 0.5em;
    white-space: nowrap;
}
