/* PHC Management Portal – isolated styles */
.phcp-wrap{max-width:1440px;margin:24px 20px 40px 0;color:#3d352f}
.phcp-heading{display:flex;align-items:center;justify-content:space-between;background:#664422;color:#fff;padding:24px 28px;border-radius:12px;margin:18px 0 24px}
.phcp-heading h1{color:#fff;font-size:28px;margin:4px 0}.phcp-heading p{margin:0;color:#f6eadf}
.phcp-eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:#b9df83}
.phcp-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
.phcp-stat,.phcp-panel{background:#fff;border:1px solid #e9e3dc;border-radius:12px;padding:20px;box-shadow:0 4px 18px rgba(45,35,25,.04)}
.phcp-stat{display:flex;align-items:center;gap:16px}.phcp-stat .dashicons{font-size:30px;width:34px;height:34px;color:#78a936}.phcp-stat strong{display:block;font-size:27px;color:#664422;line-height:1.2}.phcp-stat span:last-child{color:#756b62}
.phcp-panel{margin:18px 0;overflow:auto}.phcp-panel h2{margin-top:0;color:#664422}
.phcp-pill{display:inline-block;padding:5px 10px;border-radius:20px;margin:3px;font-size:12px}.phcp-pill.ok{background:#e9f5dc;color:#456d20}.phcp-pill.warn{background:#fff1d9;color:#8a5b13}
.phcp-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.phcp-form label{display:block;font-weight:600}.phcp-form input,.phcp-form select,.phcp-form textarea{display:block;width:100%;max-width:100%;margin-top:6px;min-height:38px}
.phcp-form textarea{min-height:80px}.phcp-form .button-primary,.phcp-button{background:#8ec22b;border-color:#8ec22b;color:#fff}.phcp-button{display:inline-block;padding:10px 18px;border-radius:6px;text-decoration:none;font-weight:600}
.phcp-login-box{max-width:480px;margin:50px auto;padding:32px;background:#fff;border:1px solid #e9e3dc;border-radius:14px;box-shadow:0 10px 35px rgba(0,0,0,.08);font-family:Arial,sans-serif}
.phcp-login-box h2{color:#664422}.phcp-brand{font-weight:800;letter-spacing:1.5px;color:#664422;margin-bottom:14px}
#phcp-loginform label{display:block;font-weight:600;margin:12px 0 5px}#phcp-loginform input[type=text],#phcp-loginform input[type=password]{width:100%;padding:10px;border:1px solid #ddd;border-radius:5px}
#phcp-loginform input[type=submit]{background:#8ec22b;border:0;color:white;padding:11px 20px;border-radius:5px;cursor:pointer}
@media(max-width:900px){.phcp-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.phcp-wrap{margin-right:10px}.phcp-heading{padding:18px;align-items:flex-start}.phcp-cards,.phcp-form-grid{grid-template-columns:1fr}.phcp-stat{padding:15px}}
/* v1.1 front-end portal */
.phcp-front-portal{max-width:1120px;margin:36px auto;padding:24px;color:#44382e;font-family:inherit}
.phcp-front-head{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#664422;color:#fff;padding:28px;border-radius:14px;margin-bottom:22px}
.phcp-front-head span{font-size:11px;letter-spacing:2px;color:#cce6a7;font-weight:800}
.phcp-front-head h2{color:#fff;margin:8px 0;font-size:28px}.phcp-front-head p{margin:0;color:#f4e9df}
.phcp-front-head>a{background:#8ec22b;color:#fff;padding:10px 16px;border-radius:6px;text-decoration:none;font-weight:700;white-space:nowrap}
.phcp-front-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.phcp-portal-tile{background:#fff;border:1px solid #e9e3dc;border-radius:12px;padding:22px;box-shadow:0 4px 18px rgba(45,35,25,.04)}
.phcp-portal-tile .dashicons{font-size:28px;width:34px;height:34px;color:#8ec22b}.phcp-portal-tile h3{color:#664422;margin:12px 0 6px}.phcp-portal-tile p{margin:0;color:#746b63;line-height:1.55}
.phcp-front-foot{border-top:1px solid #e9e3dc;padding-top:16px;margin-top:26px;color:#746b63;font-size:13px}
.phcp-notice{padding:14px 18px;background:#f7f4ed;border-left:4px solid #8ec22b;border-radius:5px}
.phcp-error{padding:10px 12px;background:#fff0ee;color:#9c3024;border-radius:5px}
@media(max-width:760px){.phcp-front-portal{padding:12px}.phcp-front-head{align-items:flex-start;flex-direction:column}.phcp-front-grid{grid-template-columns:1fr}}


/* PHC Portal 1.2.0: clickable dashboard tiles and account management */
.phcp-clickable-tile {
    display:block;
    color:inherit !important;
    text-decoration:none !important;
    transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    cursor:pointer;
}
.phcp-clickable-tile:hover,
.phcp-clickable-tile:focus {
    transform:translateY(-2px);
    box-shadow:0 8px 24px rgba(0,0,0,.09);
    border-color:#8EC22B !important;
    outline:2px solid transparent;
}
.phcp-clickable-tile .phcp-tile-link {
    display:inline-block;
    margin-top:8px;
    color:#664422;
    font-weight:600;
}
.phcp-front-view {
    background:#fff;
    border:1px solid #e7e1d9;
    border-radius:12px;
    padding:24px;
    margin:20px 0;
}
.phcp-user-actions { min-width:260px; }
.phcp-user-actions form { margin:2px 3px 2px 0 !important; }
.phcp-user-actions .button-link-delete { color:#b32d2e; }
.phcp-user-actions .button-link-delete:hover { color:#8a2424; }

/* PHC Portal 1.2.1 clickable dashboard and account controls */
.phcp-clickable-tile{display:block;color:inherit!important;text-decoration:none!important;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;cursor:pointer}
.phcp-clickable-tile:hover,.phcp-clickable-tile:focus{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.09);border-color:#8EC22B!important}
.phcp-clickable-tile .phcp-tile-link{display:inline-block;margin-top:8px;color:#664422;font-weight:600}
.phcp-front-view{background:#fff;border:1px solid #e7e1d9;border-radius:12px;padding:24px;margin:20px 0}
.phcp-user-actions{min-width:300px}.phcp-user-actions form{display:inline-block;margin:2px 3px 2px 0!important}
.phcp-user-actions .button-link-delete{color:#b32d2e}

/* PHC Portal 1.3.0 employee operations */
.phcp-front-view table{width:100%;border-collapse:collapse;margin:14px 0}
.phcp-front-view th,.phcp-front-view td{border:1px solid #e5ded5;padding:9px;text-align:left}
.phcp-front-view input,.phcp-front-view select,.phcp-front-view textarea{max-width:100%;padding:8px;border:1px solid #ccc;border-radius:4px}
.phcp-front-view article{padding:12px 0}
.phcp-front-view .phcp-button{display:inline-block;background:#8EC22B;color:#fff!important;border:0;padding:10px 16px;border-radius:5px;text-decoration:none;cursor:pointer}

/* PHC Portal 1.4.0 employee experience and file upload */
.phcp-front-view input[type=file]{display:block;margin:8px 0;max-width:100%}
.phcp-front-view table{width:100%;border-collapse:collapse;margin:14px 0}
.phcp-front-view th,.phcp-front-view td{border:1px solid #e5ded5;padding:9px;text-align:left;vertical-align:top}
.phcp-front-view input,.phcp-front-view select,.phcp-front-view textarea{max-width:100%;padding:8px;border:1px solid #ccc;border-radius:4px}
.phcp-front-view article{padding:12px 0}
.phcp-front-view .phcp-button{display:inline-block;background:#8EC22B;color:#fff!important;border:0;padding:10px 16px;border-radius:5px;text-decoration:none;cursor:pointer}
.phcp-front-view .phcp-button:hover{filter:brightness(.95)}

/* PHC Portal 1.5.0 schedule editor and responsive dashboard */
.phcp-schedule-edit{padding:12px 0;border-bottom:1px solid #e7dfd6}
.phcp-schedule-edit-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;align-items:end}
.phcp-schedule-edit-grid label{display:flex;flex-direction:column;gap:4px}
.phcp-schedule-edit-grid input,.phcp-schedule-edit-grid select{width:100%;max-width:100%;min-height:36px}
.phcp-schedule-actions{display:flex;align-items:end}
.phcp-front-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.phcp-portal-tile{min-width:0;overflow-wrap:anywhere}
@media(max-width:767px){.phcp-schedule-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* PHC Portal 1.6.0 recurring schedule controls */
.phcp-panel form label{margin-right:8px}
.phcp-panel input[type=date],.phcp-panel input[type=time],.phcp-panel input[type=text],.phcp-panel select{max-width:100%}
@media(max-width:767px){.phcp-panel .phcp-form-grid{grid-template-columns:1fr!important}.phcp-panel table{display:block;overflow-x:auto}}

/* PHC Portal 1.8.1 attendance and payslip */
.phcp-payslip-summary{display:flex;flex-wrap:wrap;gap:18px;padding:14px;margin:14px 0;background:#f4f8ef;border:1px solid #dce8d2;border-radius:8px}
.phcp-payslip-filter{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:12px 0}
.phcp-payslip-filter label{display:flex;flex-direction:column;gap:5px}
.phcp-front-view button:disabled{opacity:.45;cursor:not-allowed}
