/* ==========================================
   ACTION PLAN STYLES
   ========================================== */

/* Stack Container - wrapper for stacked card effect */
.action-plan-stack-container {
    position: relative;
}

.action-plan-stack-container.has-previous {
    margin-top: 20px;
    padding-top: 40px;
}

/* ==========================================
   STACKED CARD (Previous Plan Preview)
   ========================================== */
.action-plan-stacked-card {
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    height: 50px;
    border: 2px solid #666;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.action-plan-stacked-card:hover {
    top: -10px !important;
    height: 70px !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35) !important;
}

.action-plan-stacked-card-content {
    padding: 8px 20px;
    text-align: center;
    font-weight: bold;
    pointer-events: none;
    font-size: 0.95em;
}

.action-plan-stacked-card-subtitle {
    font-size: 0.85em;
    font-weight: normal;
}

/* ==========================================
   CURRENT PLAN
   ========================================== */
.action-plan-current {
    position: relative;
    z-index: 1;
}

/* Inactive Plan Indicator */
.inactive-plan .action-plan-wrapper {
    filter: grayscale(60%);
}

.action-plan-inactive-badge {
    display: inline-block;
    background: #666;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.action-plan-inactive-badge i {
    margin-right: 4px;
}

/* ==========================================
   HEADER SECTION
   ========================================== */
.action-plan-header {
    border: 2px solid #000000;
    padding: 10px;
}

.action-plan-title {
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.action-plan-field-label {
    width: 150px;
    padding-top: 0;
    font-weight: bold;
}

/* ==========================================
   BODY SECTION
   ========================================== */
.action-plan-body {
    border-right: 2px solid #000000;
    border-left: 2px solid #000000;
    padding: 10px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.action-plan-summary {
    font-weight: bold;
}

/* ==========================================
   TARGETS TABLE
   ========================================== */
.action-plan-targets-table {
    width: 100%;
    margin: 10px auto;
}

.action-plan-targets-table td {
    vertical-align: bottom;
}

.action-plan-targets-table thead td:first-child {
    vertical-align: bottom;
    font-weight: bold;
}

.action-plan-targets-table .target-description {
    width: 400px;
}

.action-plan-targets-table .target-status {
    width: 70px;
    text-align: center;
}

.action-plan-targets-table tbody tr:not(:first-child) {
    border-top: 1px solid #B9B9B9;
}

/* ==========================================
   REVIEW SECTION
   ========================================== */
.action-plan-review-section {
    border: 2px solid #000000;
    border-top: none;
    padding: 10px;
}

.action-plan-review-table {
    width: 100%;
    border-collapse: collapse;
}

.action-plan-review-table thead tr {
    border-bottom: 2px solid #666;
}

.action-plan-review-table th {
    text-align: left;
    padding: 6px 8px;
    font-weight: bold;
}

.action-plan-review-table th.align-right {
    text-align: right;
}

.action-plan-review-table tbody tr {
    border-bottom: 1px solid #999999;
}

.action-plan-review-table td {
    padding: 8px;
}

.action-plan-review-table td.nowrap {
    white-space: nowrap;
}

.action-plan-review-table td.align-right {
    text-align: right;
    font-weight: bold;
}

.action-plan-review-table .no-reviews {
    padding: 12px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* ==========================================
   REQUEST STATUS
   ========================================== */
.action-plan-request {
    border: 2px solid #666;
    border-top: none;
    padding: 8px;
    text-align: center;
    border-radius: 0 0 10px 10px;
}

.action-plan-request.pending {
    background: aliceblue;
}

/* ==========================================
   STATUS BAR
   ========================================== */
.action-plan-status {
    text-align: center;
    margin: auto;
    padding: 8px;
    border: 2px solid #999999;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.action-plan-status.scheduled {
    background: #e1e1e1;
}

.action-plan-status.due-today {
    background: #C4FFB9;
    border-color: #44a133;
}

.action-plan-status.overdue {
    background: #FFB9BB;
    border-color: #8d3033;
}

/* ==========================================
   CREATE PLAN SECTION
   ========================================== */
.action-plan-level-change {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 0.4rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.action-plan-level-change-title {
    font-size: 15px;
    font-weight: bold;
}

.action-plan-level-change-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-plan-level-change-label {
    margin: 0;
    white-space: nowrap;
    font-weight: bold;
}

.action-plan-create-title {
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}
