/* Overrides for candidate read-only panels to ensure separators remain visible despite global custom.css rules */
.candidate-readonly .panel {
    border-radius:6px;
    box-shadow:0 1px 4px rgba(0,0,0,0.06);
    margin-bottom:18px;
    border-color: #e6e9ed;
    background: #fff;
}
.candidate-readonly .panel-heading {
    background:#b9b9c0;
    font-weight:600;
    color:#333;
    padding:10px 15px;
    border-bottom:1px solid #e6e6e6;
    border-top-left-radius:6px;
    border-top-right-radius:6px;
}
.candidate-readonly .panel-body { padding:5px 5px; }

.candidate-readonly .field-label {
    font-weight:600;
    color:#444;
    /* keep label compact but allow natural column sizing */
    white-space: nowrap;
    padding-right: 8px;
    box-sizing: border-box;
}
.candidate-readonly .field-value {
    color:#222;
    /* let Bootstrap column widths determine size so label and value sit on the same line */
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    display: block;
}


/* Make each logical row more distinct: full-width separator, extra vertical padding */
/* Higher specificity so these rules override global styles */
div.candidate-readonly div.panel div.panel-body > .row {
    padding:5px 0 !important;
    background: transparent !important; /* ensure separator is visible */
    margin-left: 0;
    margin-right: 0;
}

/* Subtle hover highlight to make boundaries more discoverable */
div.candidate-readonly div.panel div.panel-body > .row:hover { 
    background: rgba(233, 239, 243, 0.95) !important; }


    .candidate-readonly .field-box {
        /* Make the wrapper a real box so borders/radius are visible.
           Use block and overflow:hidden so .col-* children are contained.
           Use box-sizing so borders/padding don't increase the column width. */
        display: block;
        box-sizing: border-box;
        border: 1px solid #e6e9ed;
        border-radius: 8px;
        overflow: hidden; /* contain floated .col-* children */
        background: #fff;
        margin-bottom: 8px;
        padding: 0; /* let inner columns control their own padding (avoid increasing total width) */
    }




/* Make resume link match the field-value style but keep link inline 
.candidate-readonly .resume-link {
    display: inline-block;
    border: 1px solid #e6e9ed;
    border-radius: 8px;
    padding: 6px 10px;
    background: #fff;
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: break-word;
}*/

/* Ensure inner bootstrap columns inside .field-box include padding/borders inside their width calculations
   so the column math (col-md-*) doesn't overflow when we add padding to labels/values. */
.candidate-readonly .field-box [class*="col-md-"] {
    box-sizing: border-box;
}

/* Give labels and values a bit of internal spacing without changing column widths */
.candidate-readonly .field-box .field-label { padding: 10px 12px 10px 12px; }
.candidate-readonly .field-box .field-value { padding: 10px 12px 10px 12px; }


/* Use flexbox for the inner row inside each .field-box to ensure label+value sit on the same line
   and don't overlap. We keep a sensible fixed min width for the label and allow the value to flex.
   min-width:0 on the value allows it to shrink and wrap correctly inside the flex container. */
.candidate-readonly .field-box > .row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* keep label and value on same line */
}
.candidate-readonly .field-box > .row > .field-label {
    flex: 0 0 160px; /* label column fixed base width; adjust as needed */
    max-width: 40%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.candidate-readonly .field-box > .row > .field-value {
    flex: 1 1 auto; /* take remaining space */
    min-width: 0; /* allow flex child to shrink properly and wrap text */
}

/* For small screens, allow label to shrink and stack if necessary */
@media (max-width: 768px) {
    .candidate-readonly .field-box > .row {
        flex-wrap: wrap;
    }
    .candidate-readonly .field-box > .row > .field-label {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 6px;
    }
    .candidate-readonly .field-box > .row > .field-value {
        flex: 0 0 100%;
    }
}

/* Hover the entire pair when row hovered */
div.candidate-readonly div.panel div.panel-body > .row:hover {
    box-shadow: 0 6px 18px rgba(17,17,17,0.08);
    transform: translateY(-2px);
}

