/* Himtech Administrator Login Portal v1.2.0 */
.himtech-administrator-login-page .entry-title,
.himtech-administrator-login-page .page-title,
.himtech-administrator-login-page .wp-block-post-title,
.himtech-administrator-login-page .elementor-page-title {
    display: none !important;
}

.himtech-administrator-login-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 42px 20px 70px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.himtech-administrator-login-card {
    width: min(500px, 100%);
    box-sizing: border-box;
    background: #fff;
    border: 2px solid #15365f;
    border-radius: 7px;
    padding: 34px 28px 28px;
    box-shadow: 0 12px 28px rgba(15, 40, 70, 0.12);
    text-align: center;
}

.himtech-administrator-avatar {
    width: 108px;
    height: 108px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #15365f;
    box-sizing: border-box;
    background: #fff;
}

.himtech-administrator-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.himtech-administrator-login-card h2 {
    margin: 0;
    color: #0d3159;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.himtech-administrator-caption {
    margin: 6px 0 20px;
    color: #315a83;
    font-size: 13px;
    letter-spacing: 1.8px;
    font-weight: 500;
}

.himtech-administrator-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    color: #315a83;
    font-size: 14px;
}

.himtech-administrator-divider::before,
.himtech-administrator-divider::after {
    content: "";
    height: 1px;
    background: #d5dfeb;
    flex: 1;
}

.himtech-administrator-divider span {
    white-space: nowrap;
}

.himtech-administrator-error {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 5px;
    background: #fff1f1;
    border: 1px solid #e7bcbc;
    color: #9b1c1c;
    font-size: 13px;
}

.himtech-administrator-login-card form {
    text-align: left;
}

.himtech-administrator-login-card label {
    display: block;
    margin: 0 0 7px;
    color: #0d3159;
    font-size: 14px;
    font-weight: 700;
}

.himtech-administrator-input {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.himtech-administrator-input > .dashicons {
    position: absolute;
    left: 14px;
    z-index: 2;
    color: #52769b;
    font-size: 18px;
}

.himtech-administrator-input input {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    border: 1px solid #d5dfeb;
    border-radius: 6px;
    padding: 0 44px 0 40px;
    background: #fff;
    color: #173a61;
    font-size: 14px;
    outline: none;
}

.himtech-administrator-input input:focus {
    border-color: #315f91;
    box-shadow: 0 0 0 2px rgba(49, 95, 145, 0.10);
}

.himtech-administrator-input input::placeholder {
    color: #8ca0b5;
}

.himtech-administrator-pass-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #52769b;
    cursor: pointer;
}

.himtech-administrator-login-button {
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    border: 0;
    border-radius: 6px;
    background: #17395f;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(23, 57, 95, 0.15);
}

.himtech-administrator-login-button:hover {
    background: #102f50;
}

@media (max-width: 600px) {
    .himtech-administrator-login-wrap {
        padding: 25px 14px 50px;
    }

    .himtech-administrator-login-card {
        padding: 28px 18px 22px;
    }

    .himtech-administrator-divider span {
        white-space: normal;
        text-align: center;
    }
}

/* v1.4.0 Certificate Template Manager */

.had-template-heading{margin-bottom:14px}.had-template-heading h1{margin:0}.had-template-top-grid{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(300px,.85fr);gap:16px;margin-bottom:18px}.had-template-selector,.had-template-upload{padding:16px 18px}.had-template-select-title h2,.had-template-upload-title h2{margin:0 0 4px;font-size:18px;color:#17395f}.had-template-select-title span,.had-template-upload-title span{font-size:11px;color:#718096}.had-template-select-form{display:grid;grid-template-columns:1fr 1fr 1.55fr .8fr 1.75fr auto;gap:9px;align-items:end;margin-top:12px}.had-template-select-form label,.had-global-font label{display:block;margin:0 0 5px;color:#17395f;font-size:11px;font-weight:700}.had-template-select-form input,.had-template-select-form select,.had-global-font select{width:100%;border:1px solid #d5dfeb;border-radius:6px;background:#fff;color:#173a61;padding:8px 9px;font-size:12px;box-sizing:border-box}.had-template-upload form{display:grid;grid-template-columns:1fr;gap:7px}.had-template-upload form label{font-size:11px;font-weight:700;color:#17395f}.had-template-upload input[type=file]{width:100%;font-size:11px}.had-template-upload small{font-size:10px;color:#718096}.had-template-upload .had-btn{justify-self:start}.had-template-current{margin-top:7px;padding:8px 10px;background:#f6f9fc;border:1px solid #e1e8f0;border-radius:6px;font-size:10px;color:#526780;word-break:break-word}.had-default-font{margin-top:0}.had-default-font .had-ph{align-items:center}.had-global-font{min-width:190px}.had-template-editor-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(390px,1fr);gap:14px;padding:14px}.had-fields-column{min-width:0}.had-template-table{min-width:0;width:100%;table-layout:fixed}.had-template-table th:nth-child(1){width:19%}.had-template-table th:nth-child(2),.had-template-table th:nth-child(3),.had-template-table th:nth-child(4),.had-template-table th:nth-child(5),.had-template-table th:nth-child(6){width:10%}.had-template-table th:nth-child(7){width:21%}.had-template-table input,.had-template-table select{width:100%;box-sizing:border-box;padding:7px 5px;border:1px solid #d5dfeb;border-radius:5px;background:#fff;color:#173a61;font-size:11px}.had-template-table th{white-space:nowrap;font-size:11px}.had-template-table td:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.had-template-savebar{display:flex;align-items:center;gap:10px;padding-top:12px;flex-wrap:wrap}.had-template-savebar span{font-size:10px;color:#718096}.had-live-preview-panel{border:1px solid #dfe7ef;border-radius:9px;background:#f7f9fc;overflow:hidden;position:sticky;top:12px;min-width:0}.had-live-preview-head{display:flex;justify-content:space-between;align-items:center;padding:9px 11px;background:#fff;border-bottom:1px solid #e1e8ef;color:#17395f}.had-live-preview-head>div{display:flex;align-items:center;gap:6px}.had-zoom{border:1px solid #cbd7e5;background:#fff;border-radius:5px;width:27px;height:27px;cursor:pointer;font-weight:800;color:#17395f}.had-live-preview{overflow:auto;padding:10px;max-height:760px;position:relative}.had-preview-sheet{position:relative;width:100%;max-width:none;margin:0 auto;background-image:var(--preview-bg);background-size:100% 100%;background-repeat:no-repeat;overflow:hidden;aspect-ratio:1414/2000;box-shadow:0 5px 18px rgba(21,47,78,.16)}.had-live-preview.diploma .had-preview-sheet{aspect-ratio:2000/1414}.had-live-field{position:absolute;z-index:3;color:#101d3b;font-family:Georgia,serif;font-weight:700;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.had-live-preview .had-live-field{pointer-events:none}.had-live-table-placeholder{position:absolute;z-index:2;left:8%;right:8%;top:35%;height:30%;border:1px dashed rgba(23,57,95,.38);display:flex;align-items:center;justify-content:center;text-align:center;color:rgba(23,57,95,.55);font-size:1vw;font-weight:700;pointer-events:none}.had-preview-actions{padding:9px 11px;background:#fff;border-top:1px solid #e1e8ef}.had-full-preview{margin-top:18px;overflow:hidden}.had-full-preview>.had-ph{display:flex;justify-content:space-between;align-items:center}.had-full-preview-body{padding:20px;background:#eaf0f6;overflow:auto}.had-full-preview .had-live-preview{max-height:none;padding:0;overflow:auto;background:transparent}.had-full-preview .had-preview-sheet{width:min(100%,1000px);margin:0 auto}.had-template-select-form .had-template-course-select{min-width:0}.had-template-select-form .had-btn{white-space:nowrap}.had-preview-pdf-bg{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:0;pointer-events:none}
@media(max-width:1250px){.had-template-top-grid{grid-template-columns:1fr}.had-template-editor-grid{grid-template-columns:1fr}.had-live-preview-panel{position:relative;top:auto}.had-template-select-form{grid-template-columns:1fr 1fr 1.5fr .8fr}.had-template-select-form .had-template-course-select{grid-column:1/3}.had-template-select-form .had-btn{grid-column:auto}}
@media(max-width:700px){.had-template-select-form{grid-template-columns:1fr}.had-template-select-form .had-template-course-select{grid-column:auto}.had-template-editor-grid{padding:8px}.had-global-font{min-width:0}}

@media(max-width:1250px){.had-template-workspace{grid-template-columns:1fr}.had-live-preview-panel{position:relative;top:auto}.had-template-editor-grid{grid-template-columns:1fr}.had-template-select-form{grid-template-columns:1fr 1fr 1.5fr .8fr}.had-template-select-form .had-template-course-select{grid-column:1/3}.had-template-select-form .had-btn{grid-column:auto}}
@media(max-width:700px){.had-template-select-form{grid-template-columns:1fr}.had-template-select-form .had-template-course-select{grid-column:auto}.had-template-editor-grid{padding:10px}.had-live-preview{max-height:600px}.had-global-font{min-width:0}}
.had-preview-pdf-bg{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:0;pointer-events:none}.had-live-preview .had-live-field{z-index:3}

/* v1.4.4 compact certificate editor controls */
.had-template-table th:nth-child(1),.had-template-table td:nth-child(1){width:24%!important}
.had-template-table th:nth-child(2),.had-template-table td:nth-child(2){width:22%!important}
.had-template-table th:nth-child(3),.had-template-table td:nth-child(3){width:22%!important}
.had-template-table th:nth-child(4),.had-template-table td:nth-child(4){width:12%!important}
.had-template-table th:nth-child(5),.had-template-table td:nth-child(5){width:20%!important}
.had-template-table .had-lr-cell,.had-template-table .had-ud-cell{white-space:nowrap;text-align:center}
.had-template-table .had-lr-cell input,.had-template-table .had-ud-cell input{width:42px!important;max-width:42px!important;padding:6px 3px!important;font-size:10px!important;display:inline-block!important}
.had-template-table .had-lr-cell span,.had-template-table .had-ud-cell span{font-size:10px;color:#718096;padding:0 2px}
.had-template-table td:first-child{font-size:10.5px!important}
.had-template-table select{font-size:10px!important;padding:6px 2px!important}
.had-template-editor-grid{grid-template-columns:minmax(0,1.25fr) minmax(430px,1fr)!important}
.had-live-preview-panel{min-width:430px}
.had-live-preview{min-height:620px}
.had-preview-sheet{width:100%;}
.had-live-field.course-code,.had-live-field.module-01,.had-live-field.module-02,.had-live-field.module-03,.had-live-field.module-04,.had-live-field.total,.had-live-field.result,.had-live-field.division{z-index:4}
/* v1.4.6 Certificate Designer refinements */
.had-template-upload-row{display:grid;grid-template-columns:1.45fr 1fr 1fr;gap:10px;align-items:center;padding:10px 12px!important;margin:10px 0 14px!important;background:#eef8fa!important;border:1px solid #cfe8eb!important;border-radius:9px!important}
.had-upload-cell{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap;padding:6px 8px;background:rgba(255,255,255,.65);border-radius:7px}
.had-upload-cell label{font-size:10px;font-weight:800;color:#17395f;white-space:nowrap}
.had-upload-cell input[type=file]{font-size:10px;min-width:110px;max-width:220px}
.had-upload-cell .had-btn{font-size:10px;padding:6px 8px;white-space:nowrap}
.had-upload-cell small{font-size:9px;color:#718096;white-space:nowrap}
.had-designer-toolbar{margin-top:0!important;background:#73d1da!important}
.had-toolbar-title{min-width:190px!important}
.had-toolbar-control select{width:120px!important}
.had-designer-grid{grid-template-columns:370px minmax(520px,1fr)!important;gap:12px!important}
.had-field-library{padding:8px!important}
.had-library-group{margin-bottom:10px!important}
.had-library-title{font-size:14px!important;padding:3px 5px!important}
.had-field-library>.had-library-group:not(:has(.had-marks-library)) .had-library-field{display:inline-flex;width:31%;margin:2px 1%;min-height:28px;padding:3px 4px;font-size:10px}
.had-marks-library{width:100%}
.had-marks-row{display:grid;grid-template-columns:76px 1fr;align-items:center;min-height:34px;border-bottom:1px solid #edf1f5}
.had-marks-label{font-weight:800;font-size:10px;color:#202020;padding:3px 4px}
.had-marks-modules{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
.had-mark-field{width:auto!important;margin:2px 0!important;min-height:27px!important;padding:3px 4px!important;justify-content:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px!important}
.had-edit-controls{gap:4px!important}
.had-edit-controls label{display:flex;align-items:center;gap:3px}
.had-edit-controls select{width:105px!important;max-width:105px!important}
.had-edit-controls input{width:52px!important;max-width:52px!important}
.had-editor-field{outline:none}
.had-designer-sign-image{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.had-editor-canvas .had-image-field{padding:0!important;background:transparent!important}
.had-editor-canvas .had-image-field.is-selected{background:rgba(255,255,255,.35)!important}
.had-table-object-demo span,.had-table-object-rows span,.had-table-object-rows b{font-size:7px!important}
.had-table-object-foot{font-size:7px!important}
@media(max-width:1200px){.had-designer-grid{grid-template-columns:330px minmax(450px,1fr)!important}.had-marks-row{grid-template-columns:68px 1fr}.had-mark-field{font-size:8px!important}.had-template-upload-row{grid-template-columns:1fr 1fr}}
@media(max-width:850px){.had-template-upload-row{grid-template-columns:1fr}.had-designer-grid{grid-template-columns:1fr!important}.had-marks-modules{grid-template-columns:repeat(4,minmax(65px,1fr));overflow:auto}.had-editor-canvas{min-width:460px}}
/* v1.4.7 layout + mouse resize refinements */
.had-designer-toolbar-top{margin:0 0 10px!important;border-radius:10px!important;padding:10px 14px!important;display:block!important}
.had-designer-toolbar-top .had-toolbar-title{width:100%!important}
.had-designer-grid{grid-template-columns:430px minmax(520px,1fr)!important}
.had-field-library>.had-library-group:not(:has(.had-marks-library)) .had-library-field{font-size:11px!important;min-height:30px!important}
.had-library-title{font-size:15px!important}
.had-editor-head{position:relative!important;display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;gap:10px!important}
.had-editor-head>span#had-selected-field{font-size:10px;color:#718096}
.had-remove-top{justify-self:center!important;padding:6px 14px!important}
.had-edit-savebar{display:flex!important;justify-content:center!important;align-items:center!important;gap:10px!important}
.had-editor-field{box-sizing:border-box!important}
.had-editor-field.is-selected .had-resize-handle{display:block!important}
.had-resize-handle{display:none;position:absolute;right:-5px;bottom:-5px;width:11px;height:11px;background:#fff;border:2px solid #1d5fa7;border-radius:2px;cursor:nwse-resize;z-index:9999;box-sizing:border-box}
.had-image-field{min-width:20px!important;min-height:20px!important}
@media(max-width:1200px){.had-designer-grid{grid-template-columns:380px minmax(450px,1fr)!important}}
/* v1.4.7 designer refinements */
.had-designer-toolbar{margin:0 0 10px!important;padding:10px 14px!important}
.had-designer-grid{grid-template-columns:430px minmax(520px,1fr)!important}
.had-field-library>.had-library-group:not(:has(.had-marks-library)) .had-library-field{font-size:11px!important;min-height:30px}
.had-editor-head{position:relative}
.had-remove-top{position:absolute;left:50%;transform:translateX(-50%);padding:6px 12px!important;font-size:10px!important}
.had-edit-savebar{justify-content:center!important;position:relative}
#had-edit-status{position:absolute;left:calc(50% + 70px)}
.had-editor-canvas .had-image-field{min-width:20px;min-height:20px;overflow:visible!important;border:1px dashed transparent}
.had-editor-canvas .had-image-field.is-selected{border-color:#1976d2!important}
.had-resize-handle{display:none;position:absolute;right:-5px;bottom:-5px;width:10px;height:10px;background:#1976d2;border:2px solid #fff;border-radius:50%;cursor:nwse-resize;z-index:20;box-sizing:border-box}
.had-image-field.is-selected .had-resize-handle{display:block}
@media(max-width:1200px){.had-designer-grid{grid-template-columns:390px minmax(450px,1fr)!important}}
/* v1.4.8 Certificate Designer final layout/resize refinements */
.had-designer-toolbar-top{margin-top:0!important;margin-bottom:12px!important}
.had-library-instruction{background:#f8fafc;border:1px solid #dce5ee;border-radius:7px;text-align:center;padding:8px 6px;margin:0 0 8px;color:#17395f;font-size:13px}
.had-designer-grid{grid-template-columns:460px minmax(500px,1fr)!important;align-items:stretch!important}
.had-field-library{height:100%!important;max-height:none!important;overflow:visible!important;box-sizing:border-box}
.had-editor-head{justify-content:flex-start}
.had-editor-head .had-remove-top{order:2;border-color:#dc3545!important;color:#dc3545!important;background:#fff!important;font-weight:800}
.had-editor-head .had-edit-controls{margin-left:auto}
.had-edit-savebar{justify-content:center!important}
.had-edit-savebar .had-btn{min-width:150px}
.had-editor-canvas-wrap{overflow:auto!important}
.had-editor-field{touch-action:none}
.had-resize-handle{display:none!important;position:absolute!important;right:2px!important;bottom:2px!important;width:14px!important;height:14px!important;background:#fff!important;border:2px solid #1976d2!important;border-radius:50%!important;cursor:nwse-resize!important;z-index:99999!important;box-sizing:border-box!important;pointer-events:auto!important}
.had-editor-field.is-selected .had-resize-handle{display:block!important}
.had-editor-field .had-resize-handle:hover{background:#eaf6ff!important}
@media(max-width:1200px){.had-designer-grid{grid-template-columns:380px minmax(450px,1fr)!important}}
@media(max-width:850px){.had-designer-grid{grid-template-columns:1fr!important}.had-field-library{height:auto!important;max-height:none!important;overflow:visible!important}}

/* v1.4.9 targeted certificate designer refinements */
.had-library-instruction{width:100%!important;box-sizing:border-box!important;margin:0 0 10px!important;text-align:center!important;background:#f8fafc!important;border:1px solid #dce5ee!important;border-radius:8px!important;padding:9px 10px!important;color:#17395f!important;font-size:13px!important}
.had-designer-grid{grid-template-columns:480px minmax(560px,1fr)!important;align-items:stretch!important}
.had-field-library{height:auto!important;max-height:none!important;overflow:visible!important;align-self:stretch!important}
.had-editor-head{display:flex!important;align-items:center!important;gap:10px!important}
.had-editor-head .had-remove-top{position:static!important;transform:none!important;order:0!important;margin-left:8px!important;background:#dc3545!important;color:#fff!important;border:1px solid #dc3545!important}
.had-editor-head .had-edit-controls{margin-left:auto!important}
.had-edit-savebar{background:transparent!important;border:0!important;box-shadow:none!important;justify-content:center!important;padding:12px 0 0!important}
.had-edit-savebar .had-btn{margin:0 auto!important}
@media(max-width:1200px){.had-designer-grid{grid-template-columns:420px minmax(460px,1fr)!important}}
@media(max-width:850px){.had-designer-grid{grid-template-columns:1fr!important}.had-field-library{height:auto!important;overflow:visible!important}}

/* v1.5.0 certificate designer final refinements */
.had-template-save-success{margin:0 0 10px!important;background:#eaf7ee!important;border:1px solid #b9dfc4!important;color:#176b36!important;padding:11px 14px!important;border-radius:8px!important;font-weight:800!important}
.had-edit-savebar{background:transparent!important;border:0!important;box-shadow:none!important;padding:10px 0 0!important}
.had-editor-canvas-wrap{padding:12px!important;overflow:visible!important}
.had-editor-canvas{width:100%!important;max-width:none!important;min-width:0!important;margin:0 auto!important}
.had-editor-canvas.diploma{width:100%!important;max-width:none!important;min-width:0!important}
.had-designer-workarea{min-width:0!important}
.had-editor-card{width:100%!important}
.had-editor-field{overflow:visible!important}
.had-resize-handle{display:none!important;pointer-events:auto!important;touch-action:none!important}
.had-editor-field.is-selected .had-resize-handle{display:block!important}
@media(max-width:850px){.had-editor-canvas{width:100%!important;min-width:0!important}}
/* v1.6.0: strict persistent designer layout + compact subject/module rendering. */
.had-subject-module{display:block!important;font-weight:700!important;line-height:1!important;margin:0!important;padding:0!important;white-space:nowrap!important;}
.had-subject-value{display:block!important;font-weight:400!important;line-height:1!important;margin:0!important;padding:0!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;}
.had-subject-value br{display:block!important;line-height:0!important;margin:0!important;padding:0!important;}
.had-editor-field{line-height:1!important;}
.had-full-preview .had-editor-field{line-height:1!important;}

/* v1.6.9 — Certificate Designer UI only. Save/Delete/database logic is untouched. */
.had-designer-grid{grid-template-columns:480px minmax(560px,1fr)!important;gap:12px!important;align-items:stretch!important;}
.had-library-instruction,
.had-editor-head{background:#17395f!important;color:#fff!important;}

/* Matching designer header heights: left Choose and Drag + certificate upload, right Edit + signatures + formatting. */
.had-library-instruction{
    min-height:122px!important;height:122px!important;padding:10px 12px!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    gap:10px!important;border-radius:6px!important;box-sizing:border-box!important;
}
.had-library-heading{width:100%;text-align:center!important;}
.had-library-heading b{color:#fff!important;font-size:15px!important;font-weight:800!important;}
.had-certificate-upload-inline{width:100%;display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;flex-wrap:nowrap!important;}
.had-certificate-upload-inline label{color:#eef7fb!important;font-size:9px!important;font-weight:700!important;white-space:nowrap!important;margin:0!important;}
.had-certificate-upload-inline input[type=file]{width:170px!important;max-width:170px!important;height:29px!important;padding:4px!important;background:#f7fbfd!important;color:#17395f!important;border:1px solid #cfe3eb!important;border-radius:4px!important;font-size:9px!important;}
.had-certificate-upload-inline .had-btn{height:29px!important;padding:0 9px!important;font-size:10px!important;white-space:nowrap!important;}

.had-editor-head{
    min-height:122px!important;height:122px!important;padding:7px 12px!important;
    display:grid!important;grid-template-columns:auto 1fr!important;grid-template-rows:38px 34px 34px!important;
    align-items:center!important;gap:4px 10px!important;overflow:visible!important;border-radius:6px!important;
}
.had-editor-title{grid-column:1;grid-row:1;align-self:center!important;}
.had-editor-title b{color:#fff!important;font-size:15px!important;white-space:nowrap!important;}
.had-signature-tools{grid-column:2;grid-row:1;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;min-width:0!important;}
.had-signature-item{display:flex!important;align-items:center!important;gap:4px!important;white-space:nowrap!important;}
.had-signature-item label{color:#eef7fb!important;font-size:8px!important;font-weight:700!important;margin:0!important;}
.had-signature-item input[type=file]{width:145px!important;height:28px!important;padding:4px!important;background:#f7fbfd!important;color:#17395f!important;border:1px solid #cfe3eb!important;border-radius:4px!important;font-size:9px!important;}
.had-signature-item .had-btn{height:28px!important;padding:0 8px!important;font-size:9px!important;white-space:nowrap!important;}
.had-signature-item small{display:none!important;}
.had-signature-exam{order:1!important;}
.had-signature-item:not(.had-signature-exam){order:2!important;}

/* Formatting controls stay inside the navy bar. Labels and boxes are deliberately near-white. */
.had-editor-head .had-edit-controls{
    grid-column:1/-1!important;grid-row:2/4!important;
    display:flex!important;align-items:flex-end!important;justify-content:flex-start!important;
    gap:5px!important;flex-wrap:nowrap!important;overflow:visible!important;margin:0!important;min-width:0!important;
}
.had-editor-head .had-edit-controls label{
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-end!important;
    gap:3px!important;color:#eef7fb!important;font-size:8px!important;line-height:1!important;white-space:nowrap!important;margin:0!important;
}
.had-editor-head .had-edit-controls select,
.had-editor-head .had-edit-controls input{
    height:28px!important;background:#f7fbfd!important;color:#17395f!important;border:1px solid #cfe3eb!important;
    border-radius:4px!important;padding:3px 5px!important;font-size:10px!important;box-shadow:none!important;
}
.had-editor-head .had-edit-controls label select{width:82px!important;}
.had-editor-head .had-edit-controls label input{width:49px!important;}
.had-editor-head .had-edit-controls .had-tool-btn{
    height:28px!important;min-width:28px!important;width:28px!important;flex:0 0 28px!important;
    background:#f7fbfd!important;color:#17395f!important;border:1px solid #cfe3eb!important;border-radius:4px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:14px!important;
}
.had-editor-head .had-edit-controls .had-tool-btn b,
.had-editor-head .had-edit-controls .had-tool-btn i{color:#17395f!important;}
.had-editor-head .had-edit-controls .had-remove-inline{
    height:28px!important;min-width:48px!important;width:48px!important;padding:0 7px!important;flex:0 0 48px!important;
    background:#d92d20!important;color:#fff!important;border:1px solid #b42318!important;border-radius:4px!important;
    font-size:10px!important;font-weight:800!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
}

/* A little more room at common desktop widths; left bar always matches right bar. */
@media(max-width:1350px){
    .had-designer-grid{grid-template-columns:420px minmax(520px,1fr)!important;}
    .had-editor-head{height:146px!important;min-height:146px!important;grid-template-rows:38px 38px 54px!important;}
    .had-library-instruction{height:146px!important;min-height:146px!important;}
    .had-signature-tools{gap:5px!important;}
    .had-signature-item input[type=file]{width:120px!important;max-width:120px!important;}
    .had-editor-head .had-edit-controls{flex-wrap:wrap!important;align-content:flex-end!important;row-gap:4px!important;}
}
@media(max-width:1050px){
    .had-editor-head{height:auto!important;min-height:170px!important;grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important;}
    .had-editor-title,.had-signature-tools,.had-editor-head .had-edit-controls{grid-column:1!important;}
    .had-signature-tools{grid-row:2!important;justify-content:flex-start!important;flex-wrap:wrap!important;}
    .had-editor-head .had-edit-controls{grid-row:3!important;flex-wrap:wrap!important;}
    .had-library-instruction{height:170px!important;min-height:170px!important;}
}

/* v1.6.9 — new default typography is Arial for newly created designer fields. */
.had-editor-field{font-family:Arial,Helvetica,sans-serif;}

/* v1.6.9 — Full Preview remains a compact true-A4 reference. */
.had-full-preview-body{padding:16px!important;}
.had-full-preview .had-preview-sheet{width:794px!important;min-width:794px!important;max-width:794px!important;aspect-ratio:210/297!important;}
.had-full-preview .had-preview-sheet.diploma{width:1123px!important;min-width:1123px!important;max-width:1123px!important;aspect-ratio:297/210!important;}


/* v1.7.0 UI-only refinement — DO NOT ALTER SAVE/DELETE/PERSISTENCE LOGIC. */
.had-designer-grid{align-items:start!important;}
.had-field-library{background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;overflow:visible!important;}
.had-library-instruction{background:#17395f!important;border:0!important;border-radius:6px!important;width:100%!important;min-height:92px!important;height:92px!important;box-sizing:border-box!important;margin:0 0 10px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#fff!important;}
.had-library-heading{width:100%!important;text-align:center!important;}
.had-library-heading b{font-size:17px!important;color:#fff!important;}
.had-library-title{background:#9ddde5!important;color:#17395f!important;border:0!important;font-size:15px!important;padding:8px 6px!important;margin:0 0 7px!important;border-radius:4px!important;}
.had-library-group{margin-bottom:12px!important;}
.had-library-field{background:#fafafa!important;}
.had-library-signatures{display:flex!important;gap:10px!important;margin:10px 0 14px!important;padding:10px!important;background:#f4fbfc!important;border:1px solid #cfe7eb!important;border-radius:6px!important;flex-wrap:wrap!important;}
.had-library-signature-item{display:flex!important;align-items:center!important;gap:6px!important;flex:1 1 320px!important;min-width:280px!important;flex-wrap:wrap!important;}
.had-library-signature-item label{font-size:10px!important;font-weight:800!important;color:#17395f!important;min-width:120px!important;}
.had-library-signature-item input[type=file]{height:30px!important;max-width:180px!important;font-size:9px!important;background:#fff!important;color:#17395f!important;border:1px solid #cfe3eb!important;border-radius:4px!important;padding:4px!important;}
.had-library-signature-item .had-btn{height:30px!important;padding:0 10px!important;background:#73d1da!important;color:#17395f!important;border:1px solid #54b9c3!important;font-weight:800!important;}
.had-library-signature-item small{font-size:9px!important;color:#28734b!important;}
.had-editor-head{grid-template-columns:auto 1fr!important;grid-template-rows:38px 48px!important;height:94px!important;min-height:94px!important;padding:7px 12px!important;background:#17395f!important;}
.had-editor-title{grid-column:1!important;grid-row:1!important;}
.had-template-upload-editor{grid-column:2!important;grid-row:1!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;min-width:0!important;}
.had-template-upload-editor label{color:#eef7fb!important;font-size:9px!important;font-weight:800!important;white-space:nowrap!important;}
.had-template-upload-editor input[type=file]{width:180px!important;max-width:180px!important;height:30px!important;padding:4px!important;background:#f7fbfd!important;color:#17395f!important;border:1px solid #cfe3eb!important;border-radius:4px!important;font-size:9px!important;}
.had-template-upload-editor .had-btn{height:30px!important;padding:0 10px!important;background:#73d1da!important;color:#17395f!important;border:1px solid #54b9c3!important;font-weight:800!important;white-space:nowrap!important;}
.had-editor-head .had-edit-controls{grid-column:1/-1!important;grid-row:2!important;display:flex!important;align-items:flex-end!important;justify-content:flex-start!important;gap:5px!important;flex-wrap:nowrap!important;overflow:visible!important;}
.had-editor-head .had-edit-controls label{color:#dff8fb!important;}
.had-editor-head .had-edit-controls select,.had-editor-head .had-edit-controls input{background:#f7fbfd!important;color:#17395f!important;border:1px solid #cfe3eb!important;}
.had-editor-head .had-edit-controls .had-tool-btn{background:#f7fbfd!important;color:#17395f!important;}
.had-editor-head .had-edit-controls .had-remove-inline{background:#d92d20!important;color:#fff!important;}
@media(max-width:1350px){.had-editor-head{height:118px!important;min-height:118px!important;grid-template-rows:38px 70px!important;}.had-template-upload-editor input[type=file]{max-width:150px!important;width:150px!important;}.had-editor-head .had-edit-controls{flex-wrap:wrap!important;align-content:flex-end!important;row-gap:4px!important;}}
@media(max-width:1050px){.had-editor-head{height:auto!important;min-height:150px!important;grid-template-columns:1fr!important;grid-template-rows:auto auto!important;}.had-editor-title,.had-template-upload-editor,.had-editor-head .had-edit-controls{grid-column:1!important;}.had-template-upload-editor{grid-row:1!important;justify-content:flex-start!important;flex-wrap:wrap!important;}.had-editor-title{grid-row:1!important;}.had-editor-head .had-edit-controls{grid-row:2!important;flex-wrap:wrap!important;}}

/* v1.7.3 — UI ONLY: single designer inner row + gold themed headers.
 * Save/Delete/Persistence logic intentionally untouched. */
.had-designer-grid{
    margin-top:16px!important;
    gap:16px!important;
    align-items:start!important;
    background:transparent!important;
    padding:0!important;
}

/* Both designer inner sections use the same header height/design. */
.had-library-instruction,
.had-editor-head{
    background:#c79a2b!important;
    color:#fff!important;
    border:1px solid #b48720!important;
    border-radius:6px!important;
    box-shadow:none!important;
    box-sizing:border-box!important;
}
.had-library-instruction{
    height:94px!important;
    min-height:94px!important;
    margin:0!important;
    padding:8px 12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}
.had-library-heading b{
    color:#fff!important;
    font-size:17px!important;
    font-weight:800!important;
}

/* Edit Certificate: same 94px gold header as Choose and Drag. */
.had-editor-head{
    height:94px!important;
    min-height:94px!important;
    padding:7px 12px!important;
    background:#c79a2b!important;
}
.had-editor-title b{color:#fff!important;}
.had-template-upload-editor label,
.had-editor-head .had-edit-controls label{
    color:#fffaf0!important;
}

/* Theme-matched light controls inside the gold bar. */
.had-template-upload-editor input[type=file],
.had-editor-head .had-edit-controls select,
.had-editor-head .had-edit-controls input{
    background:#fffaf0!important;
    color:#6b4f00!important;
    border:1px solid #ead28a!important;
    box-shadow:none!important;
}
.had-editor-head .had-edit-controls .had-tool-btn{
    background:#fffaf0!important;
    color:#6b4f00!important;
    border:1px solid #ead28a!important;
}
.had-editor-head .had-edit-controls .had-tool-btn b,
.had-editor-head .had-edit-controls .had-tool-btn i{
    color:#6b4f00!important;
}

/* Certificate upload button follows the gold theme instead of navy. */
.had-template-upload-editor .had-btn{
    background:#fffaf0!important;
    color:#6b4f00!important;
    border:1px solid #ead28a!important;
    font-weight:800!important;
}

/* Keep the existing light content area; only the two designer header bars change. */
.had-library-top-shell{
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
}
.had-library-top-shell .had-library-group:first-of-type{
    margin-top:10px!important;
}

@media(max-width:1350px){
    .had-library-instruction,
    .had-editor-head{
        height:118px!important;
        min-height:118px!important;
    }
}
@media(max-width:1050px){
    .had-designer-grid{margin-top:14px!important;}
    .had-library-instruction{height:94px!important;min-height:94px!important;}
    .had-editor-head{height:auto!important;min-height:150px!important;}
}


/* v1.7.4 — POINTS 1 + 2 ONLY. UI/layout refinement; Save/Delete/Persistence untouched. */
/* Choose & Drag header is its own inner block; Course Detail is a separate section below it. */
.had-library-top-shell{
    width:100%!important;
    margin:0 0 12px!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    box-sizing:border-box!important;
}
.had-library-top-shell .had-library-instruction{
    width:100%!important;
    height:94px!important;
    min-height:94px!important;
    margin:0!important;
    box-sizing:border-box!important;
}
/* Match the same 12px breathing space used between the Edit header and certificate canvas. */
.had-library-top-shell + .had-library-group{
    margin-top:12px!important;
}
/* Course Detail uses the same lavender/soft-sky family as the existing Centre Detail heading. */
.had-library-top-shell + .had-library-group .had-library-title{
    background:#d9d3f5!important;
    color:#17395f!important;
}
/* Keep Choose & Drag and Edit Certificate aligned at the same top edge. */
.had-designer-grid{align-items:start!important;}
.had-library-instruction,.had-editor-head{
    height:94px!important;
    min-height:94px!important;
}
/* Certificate upload sits compactly at the far right of the Edit Certificate bar. */
.had-template-upload-editor{
    justify-content:flex-end!important;
    gap:2px!important;
    min-width:0!important;
    white-space:nowrap!important;
}
.had-template-upload-editor label{
    font-size:8px!important;
    line-height:1!important;
    margin:0!important;
}
.had-template-upload-editor input[type=file]{
    width:160px!important;
    max-width:160px!important;
    height:28px!important;
    padding:3px!important;
    font-size:8px!important;
}
.had-template-upload-editor .had-btn{
    height:28px!important;
    min-width:52px!important;
    padding:0 8px!important;
    font-size:9px!important;
    margin:0!important;
}
@media(max-width:1350px){
    .had-library-top-shell .had-library-instruction{height:118px!important;min-height:118px!important;}
    .had-library-top-shell + .had-library-group{margin-top:12px!important;}
    .had-template-upload-editor{gap:2px!important;}
    .had-template-upload-editor input[type=file]{width:145px!important;max-width:145px!important;}
}


/* v1.7.6 — FINAL UI POLISH ONLY. Save/Delete/Persistence untouched. */
/* 1) Move Choose & Drag fully inside the left designer column; no overlap with the task panel. */
.had-library-top-shell{
    margin-left:0!important;
    width:100%!important;
    box-sizing:border-box!important;
}
.had-library-top-shell .had-library-instruction{
    margin-left:0!important;
    width:100%!important;
    height:94px!important;
    min-height:94px!important;
    box-sizing:border-box!important;
    padding:8px 12px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
}
/* 2) Certificate/Diploma Template label slightly larger; file controls remain compact/right aligned. */
.had-template-upload-editor label{
    font-size:10px!important;
    line-height:1!important;
    color:#fff!important;
}
.had-template-upload-editor{
    gap:2px!important;
}
/* Formatting labels and controls are both clean white against the gold bar. */
.had-editor-head .had-edit-controls label{
    color:#fff!important;
}
.had-editor-head .had-edit-controls select,
.had-editor-head .had-edit-controls input,
.had-editor-head .had-edit-controls .had-tool-btn{
    background:#fff!important;
    color:#6b4f00!important;
    border-color:#ead28a!important;
}
/* 3) Instruction under Choose & Drag. */
.had-library-subtitle{
    color:#fff!important;
    font-size:11px!important;
    font-weight:600!important;
    line-height:1.1!important;
    text-align:center!important;
    margin:0!important;
    padding:0!important;
}
@media(max-width:1350px){
    .had-library-top-shell .had-library-instruction{
        height:118px!important;
        min-height:118px!important;
    }
}


/* v1.7.7 — FINAL TOUCH ONLY. Save/Delete/Persistence untouched. */
/* 1) Move Choose & Drag slightly right so it aligns with the content column and no longer overlaps the task panel. */
.had-library-top-shell{
    margin-left:10px!important;
    width:calc(100% - 10px)!important;
    box-sizing:border-box!important;
}
.had-library-top-shell .had-library-instruction{
    margin-left:0!important;
    width:100%!important;
}
/* 2) All formatting labels and boxes are pure white on the gold Edit Certificate bar. */
.had-editor-head .had-edit-controls label{color:#fff!important;}
.had-editor-head .had-edit-controls select,
.had-editor-head .had-edit-controls input,
.had-editor-head .had-edit-controls .had-tool-btn{
    background:#fff!important;
    color:#6b4f00!important;
}
/* 3) Only the Nodal/Exam signature Upload buttons are navy blue. */
.had-library-signature-item .had-sign-upload-client{
    background:#17395f!important;
    color:#fff!important;
    border:1px solid #17395f!important;
}
/* 4) Make the Choose & Drag helper text more readable; ample room is available. */
.had-library-subtitle{
    font-size:14px!important;
    font-weight:700!important;
    line-height:1.2!important;
}
@media(max-width:1050px){
    .had-library-top-shell{
        margin-left:8px!important;
        width:calc(100% - 8px)!important;
    }
}

/* v1.7.9 — FINAL TOUCH: only requested UI alignment + white toolbar controls. */
/* Keep all Save/Delete/Persistence logic untouched. */
.had-library-top-shell{
    margin-left:30px!important;
    width:calc(100% - 30px)!important;
    box-sizing:border-box!important;
}
.had-library-top-shell .had-library-instruction{
    margin-left:0!important;
    width:100%!important;
}
/* Formatting labels and every formatting control are white on the gold toolbar. */
.had-editor-head .had-edit-controls label{
    color:#fff!important;
}
.had-editor-head .had-edit-controls select,
.had-editor-head .had-edit-controls input,
.had-editor-head .had-edit-controls .had-tool-btn{
    background:#fff!important;
    background-color:#fff!important;
    color:#6b4f00!important;
    border-color:#ead28a!important;
}
.had-editor-head .had-edit-controls select option{
    background:#fff!important;
    color:#6b4f00!important;
}
@media(max-width:1050px){
    .had-library-top-shell{
        margin-left:18px!important;
        width:calc(100% - 18px)!important;
    }
}


/* v1.7.9 final touch — UI only. */
.had-library-top-shell{margin-left:0!important;margin-right:0!important;width:100%!important;}
.had-library-top-shell .had-library-instruction{margin-left:0!important;margin-right:0!important;width:100%!important;background:#b8860b!important;color:#fff!important;}
.had-editor-head{background:#b8860b!important;color:#fff!important;}
.had-editor-head .had-edit-controls label{color:#fff!important;}
.had-editor-head .had-edit-controls select,.had-editor-head .had-edit-controls input,.had-editor-head .had-edit-controls .had-tool-btn{background:#fff!important;color:#6b4f00!important;border-color:#e2c66d!important;}
.had-editor-head .had-edit-controls select option{background:#fff!important;color:#6b4f00!important;}

/* v1.8.0 — UI-only correction.
 * Restore the Result-area signature panel presentation and force the
 * Edit Certificate formatting controls to pure white. Save/Delete/Persistence untouched.
 */
.had-library-signatures-after-result{
    display:flex!important;
    gap:10px!important;
    margin:10px 0 14px!important;
    padding:10px!important;
    background:#f4fbfc!important;
    border:1px solid #cfe7eb!important;
    border-radius:6px!important;
    flex-wrap:wrap!important;
    box-sizing:border-box!important;
}
.had-library-signatures-after-result .had-library-signature-item{
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    flex:1 1 320px!important;
    min-width:280px!important;
    flex-wrap:wrap!important;
    margin:0!important;
}
.had-library-signatures-after-result .had-library-signature-item label{
    font-size:10px!important;
    font-weight:800!important;
    color:#17395f!important;
    min-width:120px!important;
}
.had-library-signatures-after-result .had-library-signature-item input[type=file]{
    height:30px!important;
    max-width:180px!important;
    font-size:9px!important;
    background:#fff!important;
    color:#17395f!important;
    border:1px solid #cfe3eb!important;
    border-radius:4px!important;
    padding:4px!important;
}
.had-library-signatures-after-result .had-library-signature-item .had-sign-upload-client{
    height:30px!important;
    padding:0 10px!important;
    background:#17395f!important;
    color:#fff!important;
    border:1px solid #17395f!important;
    font-weight:800!important;
}
.had-library-signatures-after-result .had-library-signature-item small{
    font-size:9px!important;
    color:#28734b!important;
}
.had-editor-head .had-edit-controls label{color:#fff!important;}
.had-editor-head .had-edit-controls select,
.had-editor-head .had-edit-controls input,
.had-editor-head .had-edit-controls .had-tool-btn{
    background:#fff!important;
    background-image:none!important;
    color:#6b4f00!important;
    border-color:#e2c66d!important;
}
.had-editor-head .had-edit-controls select option{
    background:#fff!important;
    color:#6b4f00!important;
}


/* v1.8.1 — move formatting controls below the certificate canvas.
 * UI-only: Save/Delete/Persistence logic is untouched. */
.had-designer-grid{gap:18px!important;align-items:start!important;}
.had-library-top-shell{margin:0!important;width:100%!important;}
.had-library-top-shell .had-library-instruction{
    height:72px!important;min-height:72px!important;box-sizing:border-box!important;
    margin:0!important;width:100%!important;
    display:flex!important;flex-direction:column!important;justify-content:center!important;
    align-items:center!important;padding:8px 12px!important;
    background:#b8860b!important;color:#fff!important;
}
.had-library-top-shell .had-library-heading{font-size:18px!important;line-height:1.1!important;}
.had-library-top-shell .had-library-subtitle{font-size:12px!important;line-height:1.2!important;margin-top:5px!important;}
.had-editor-head{
    height:72px!important;min-height:72px!important;box-sizing:border-box!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    padding:8px 12px!important;background:#b8860b!important;color:#fff!important;
    gap:10px!important;
}
.had-editor-title{flex:0 0 auto!important;white-space:nowrap!important;}
.had-template-upload-editor{margin-left:auto!important;display:flex!important;align-items:center!important;gap:5px!important;white-space:nowrap!important;}
.had-template-upload-editor label{color:#fff!important;font-size:11px!important;font-weight:800!important;}
.had-template-upload-editor input[type=file]{max-width:170px!important;width:170px!important;font-size:10px!important;background:#fff!important;color:#17395f!important;border:1px solid #e2c66d!important;border-radius:4px!important;}
.had-template-upload-editor .had-btn{background:#17395f!important;color:#fff!important;border:1px solid #17395f!important;height:32px!important;padding:0 10px!important;}
.had-format-toolbar{
    margin-top:8px!important;width:100%!important;box-sizing:border-box!important;
    min-height:58px!important;padding:7px 10px!important;border-radius:7px!important;
    background:#b8860b!important;color:#fff!important;
    display:flex!important;align-items:flex-end!important;gap:5px!important;flex-wrap:nowrap!important;
    overflow:visible!important;
}
.had-format-toolbar .had-edit-controls{
    width:100%!important;margin:0!important;padding:0!important;
    display:flex!important;align-items:flex-end!important;justify-content:flex-start!important;
    gap:5px!important;flex-wrap:nowrap!important;overflow:visible!important;
}
.had-format-toolbar .had-edit-controls label{color:#fff!important;font-size:9px!important;font-weight:800!important;line-height:1!important;display:flex!important;flex-direction:column!important;gap:3px!important;}
.had-format-toolbar .had-edit-controls select,.had-format-toolbar .had-edit-controls input,.had-format-toolbar .had-edit-controls .had-tool-btn{
    background:#fff!important;background-image:none!important;color:#6b4f00!important;
    border:1px solid #e2c66d!important;box-sizing:border-box!important;
}
.had-format-toolbar .had-edit-controls select{height:30px!important;width:82px!important;padding:3px 5px!important;font-size:11px!important;}
.had-format-toolbar .had-edit-controls input{height:30px!important;width:50px!important;padding:3px 5px!important;font-size:11px!important;}
.had-format-toolbar .had-edit-controls .had-tool-btn{width:30px!important;height:30px!important;padding:0!important;font-size:14px!important;font-weight:800!important;}
.had-format-toolbar .had-edit-controls .had-remove-inline{width:auto!important;min-width:54px!important;background:#d92d20!important;color:#fff!important;border-color:#d92d20!important;}
.had-format-toolbar .had-edit-controls .had-tool-btn b,.had-format-toolbar .had-edit-controls .had-tool-btn i{color:#6b4f00!important;}
.had-format-toolbar .had-edit-controls select option{background:#fff!important;color:#6b4f00!important;}
.had-editor-canvas-wrap{margin-top:0!important;}
.had-edit-savebar{margin-top:8px!important;}
.had-full-preview-actions{display:flex!important;align-items:center!important;gap:6px!important;}
.had-print-preview{background:#17395f!important;color:#fff!important;border:1px solid #17395f!important;padding:6px 10px!important;font-weight:800!important;}
@media(max-width:1250px){
 .had-format-toolbar .had-edit-controls{flex-wrap:wrap!important;align-items:flex-end!important;row-gap:5px!important;}
 .had-format-toolbar{min-height:82px!important;}
}
@media(max-width:1050px){
 .had-editor-head{height:72px!important;min-height:72px!important;}
 .had-template-upload-editor input[type=file]{max-width:140px!important;width:140px!important;}
}


/* v1.8.5 — final toolbar polish. UI-only; save/delete/persistence untouched. */
.had-unified-designer-bar .had-unified-title{display:none!important;}
.had-unified-designer-bar .had-template-upload-editor{margin-left:0!important;}
.had-unified-designer-bar > .had-edit-controls label{color:#000!important;}
.had-unified-designer-bar > .had-edit-controls select,
.had-unified-designer-bar > .had-edit-controls input,
.had-unified-designer-bar > .had-edit-controls .had-tool-btn{color:#000!important;}
.had-unified-designer-bar > .had-edit-controls .had-tool-btn b,
.had-unified-designer-bar > .had-edit-controls .had-tool-btn i{color:#000!important;}
.had-unified-designer-bar > .had-edit-controls select option{color:#000!important;}

/* v1.8.6 — final label color polish only: Transform through Letter Space labels white. */
.had-unified-designer-bar > .had-edit-controls label{color:#fff!important;}

/* v1.8.7 — force formatting labels white. */
.had-unified-designer-bar > .had-edit-controls > label,
.had-unified-designer-bar > .had-edit-controls > label *:not(select):not(input){color:#fff!important;}
.had-unified-designer-bar > .had-edit-controls > label select,
.had-unified-designer-bar > .had-edit-controls > label input{color:#000!important;}

/* v1.9.0 — Centre-wise Certificate Printing Summary.
 * UI/summary only. Certificate Designer Save/Edit/Delete/Persistence is untouched. */
.had-cert-centre-summary{overflow:hidden!important;}
.had-cert-summary-head{display:flex!important;justify-content:space-between!important;align-items:flex-end!important;gap:18px!important;padding:16px 18px!important;border-bottom:1px solid #e5ebf2!important;}
.had-cert-summary-head h2{margin:0 0 4px!important;color:#17395f!important;font-size:18px!important;}
.had-cert-summary-head>div>span{font-size:11px!important;color:#718096!important;}
.had-cert-centre-controls{display:grid!important;grid-template-columns:minmax(180px,1fr) minmax(230px,1.25fr) auto auto!important;gap:8px!important;align-items:end!important;min-width:min(720px,100%)!important;}
.had-cert-centre-controls label{display:block!important;color:#17395f!important;font-size:10px!important;font-weight:800!important;}
.had-cert-centre-controls select,.had-cert-centre-controls input{display:block!important;width:100%!important;height:36px!important;margin-top:4px!important;padding:7px 9px!important;border:1px solid #d5dfeb!important;border-radius:6px!important;background:#fff!important;color:#17395f!important;box-sizing:border-box!important;font-size:11px!important;}
.had-cert-centre-controls .had-btn{height:36px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;}
.had-centre-performance-table{min-width:980px!important;}
.had-centre-performance-table th{white-space:nowrap!important;font-size:10px!important;}
.had-centre-performance-table td{vertical-align:middle!important;}
.had-centre-rank{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:30px!important;height:30px!important;border-radius:50%!important;border:1px solid #dce5ee!important;background:#fff!important;color:#17395f!important;font-weight:900!important;}
.had-top-centre{background:linear-gradient(90deg,#fff5f4 0%,#fff 55%)!important;}
.had-top-centre .had-centre-rank{border-color:#f1b3aa!important;background:#fff!important;color:#b42318!important;box-shadow:0 0 0 3px rgba(217,45,32,.06)!important;}
.had-centre-name{font-weight:900!important;color:#17395f!important;font-size:12px!important;}
.had-centre-id{font-size:10px!important;color:#718096!important;margin-top:2px!important;}
.had-centre-hot{display:inline-block!important;margin-top:4px!important;padding:2px 6px!important;border-radius:4px!important;background:#fff0ee!important;color:#b42318!important;font-size:8px!important;font-weight:900!important;letter-spacing:.35px!important;}
.had-centre-count{display:inline-flex!important;min-width:42px!important;height:28px!important;padding:0 9px!important;align-items:center!important;justify-content:center!important;border-radius:7px!important;font-weight:900!important;font-size:11px!important;box-sizing:border-box!important;}
.had-count-pending{background:#fff2d8!important;color:#a05a00!important;}
.had-count-proof{background:#eaf5ff!important;color:#1670a8!important;}
.had-count-ready{background:#f0ebff!important;color:#5630bd!important;}
.had-count-printed{background:#e9f8ef!important;color:#168447!important;}
.had-count-blink{animation:hadPendingPulse 1.25s ease-in-out infinite!important;}
@keyframes hadPendingPulse{0%,100%{transform:scale(1);opacity:1;box-shadow:0 0 0 0 rgba(217,45,32,0)}50%{transform:scale(1.08);opacity:.58;box-shadow:0 0 0 5px rgba(217,45,32,.12)}}
.had-view-centre-btn{white-space:nowrap!important;display:inline-flex!important;align-items:center!important;gap:6px!important;}
.had-centre-total-row td{background:#f6f9fc!important;border-top:2px solid #dfe7ef!important;color:#17395f!important;}
.had-centre-summary-note{display:flex!important;align-items:center!important;gap:7px!important;padding:11px 18px 14px!important;color:#526780!important;font-size:10px!important;}
.had-centre-summary-note .dashicons{color:#2d72b8!important;font-size:17px!important;width:17px!important;height:17px!important;}
.had-cert-card-note{display:block!important;margin-top:4px!important;font-size:9px!important;color:#718096!important;}
.had-selected-centre-panel{margin-top:18px!important;}
@media(max-width:1150px){
 .had-cert-summary-head{align-items:stretch!important;flex-direction:column!important;}
 .had-cert-centre-controls{min-width:0!important;width:100%!important;}
}
@media(max-width:760px){
 .had-cert-centre-controls{grid-template-columns:1fr!important;}
 .had-cert-centre-controls .had-btn,.had-cert-centre-controls a.had-btn{width:100%!important;}
}


/* v1.9.1 — Certificate record management: serial, issue date, actions and edit page. */
.had-certificate-management-table{min-width:1320px!important;}
.had-certificate-management-table th{white-space:nowrap!important;font-size:10px!important;}
.had-certificate-management-table td{vertical-align:middle!important;}
.had-cert-number{color:#1465c0!important;white-space:nowrap!important;font-size:11px!important;}
.had-issue-date{display:block!important;white-space:nowrap!important;font-weight:800!important;color:#17395f!important;font-size:10px!important;}
.had-cert-actions{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:150px!important;}
.had-cert-actions .had-btn{justify-content:center!important;white-space:nowrap!important;font-size:9px!important;padding:7px 8px!important;}
.had-download-cert-btn{background:#173f68!important;color:#fff!important;}
.had-print-cert-btn{background:#fff!important;color:#173f68!important;border:1px solid #cfdbea!important;}
.had-edit-cert-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:34px!important;height:34px!important;border:1px solid #d5dfeb!important;border-radius:7px!important;background:#fff!important;color:#1769d1!important;font-size:21px!important;font-weight:900!important;text-decoration:none!important;}
.had-edit-cert-btn:hover{background:#eef6ff!important;transform:translateY(-1px)!important;}
.had-cert-edit-page{overflow:hidden!important;}
.had-cert-edit-form{padding:18px!important;}
.had-edit-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
.had-edit-grid section{border:1px solid #e0e7ef!important;border-radius:9px!important;padding:15px!important;background:#fbfcfe!important;}
.had-edit-grid section h3{margin:0 0 12px!important;color:#17395f!important;font-size:14px!important;}
.had-edit-grid label{display:block!important;margin:0 0 10px!important;color:#17395f!important;font-size:10px!important;font-weight:800!important;}
.had-edit-grid input,.had-edit-grid select,.had-edit-grid textarea{display:block!important;width:100%!important;margin-top:5px!important;box-sizing:border-box!important;border:1px solid #d4deea!important;border-radius:6px!important;background:#fff!important;color:#17395f!important;padding:8px 9px!important;font-size:11px!important;}
.had-edit-grid textarea{font-family:Consolas,monospace!important;line-height:1.35!important;resize:vertical!important;}
.had-edit-help{font-size:9px!important;color:#718096!important;}
.had-edit-savebar{display:flex!important;gap:9px!important;align-items:center!important;margin-top:15px!important;}
.had-cert-edit-page .had-ph{align-items:center!important;}
@media(max-width:850px){.had-edit-grid{grid-template-columns:1fr!important;}}

/* v1.9.2 — Certificate edit page arrangement, photo, serial and exam cycle. */
.had-cert-edit-page{background:#fff!important;border:1px solid #dfe7f0!important;border-radius:12px!important;box-shadow:0 4px 18px rgba(21,47,78,.06)!important;}
.had-cert-edit-page>.had-ph{padding:18px 20px!important;background:#f7fafd!important;border-bottom:1px solid #e4ebf3!important;}
.had-cert-edit-page>.had-ph h2{font-size:17px!important;margin:0 0 5px!important;color:#17395f!important;}
.had-cert-edit-page>.had-ph span{font-size:11px!important;color:#718096!important;}
.had-cert-edit-form{padding:18px 20px 20px!important;}
.had-edit-summary{display:grid!important;grid-template-columns:minmax(240px,1.5fr) minmax(150px,1fr) minmax(150px,1fr) 100px!important;gap:10px!important;align-items:stretch!important;margin-bottom:15px!important;}
.had-edit-summary-main,.had-edit-summary-item{border:1px solid #dfe7f0!important;border-radius:9px!important;background:#fbfcfe!important;padding:11px 13px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;}
.had-edit-summary-main strong{font-size:16px!important;color:#1465c0!important;letter-spacing:.2px!important;}
.had-edit-summary-main small,.had-edit-summary-item span{font-size:9px!important;color:#718096!important;margin-top:3px!important;}
.had-edit-summary-item b{font-size:12px!important;color:#17395f!important;margin-top:5px!important;}
.had-edit-kicker{font-size:9px!important;font-weight:800!important;text-transform:uppercase!important;color:#17395f!important;letter-spacing:.6px!important;}
.had-edit-photo{border:1px solid #dfe7f0!important;border-radius:9px!important;background:#fbfcfe!important;padding:7px!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:82px!important;}
.had-edit-photo img{width:70px!important;height:86px!important;object-fit:cover!important;border-radius:6px!important;border:1px solid #d5dfeb!important;}
.had-photo-placeholder{font-size:9px!important;color:#718096!important;text-align:center!important;}
.had-edit-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important;}
.had-edit-grid section{border:1px solid #dfe7f0!important;border-radius:10px!important;padding:14px!important;background:#fbfcfe!important;min-width:0!important;}
.had-edit-grid section h3{margin:0 0 12px!important;padding-bottom:8px!important;border-bottom:1px solid #e7edf4!important;color:#17395f!important;font-size:13px!important;}
.had-field-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
.had-field-grid label{display:block!important;margin:0!important;color:#17395f!important;font-size:10px!important;font-weight:800!important;min-width:0!important;}
.had-field-grid .had-field-wide{grid-column:1/-1!important;}
.had-field-grid input,.had-field-grid select,.had-field-grid textarea{display:block!important;width:100%!important;margin-top:5px!important;box-sizing:border-box!important;border:1px solid #d4deea!important;border-radius:6px!important;background:#fff!important;color:#17395f!important;padding:8px 9px!important;font-size:11px!important;min-height:35px!important;}
.had-field-grid input[type=file]{padding:6px!important;font-size:10px!important;}
.had-field-grid textarea{font-family:Consolas,monospace!important;line-height:1.35!important;resize:vertical!important;}
.had-edit-help{display:block!important;font-size:9px!important;line-height:1.35!important;color:#718096!important;margin-top:5px!important;font-weight:500!important;}
.had-photo-edit-row{display:grid!important;grid-template-columns:76px 1fr!important;gap:14px!important;align-items:center!important;}
.had-current-photo{width:70px!important;height:86px!important;object-fit:cover!important;border-radius:6px!important;border:1px solid #d5dfeb!important;background:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;}
.had-photo-edit-row label{display:block!important;margin:0!important;color:#17395f!important;font-size:10px!important;font-weight:800!important;}
.had-photo-edit-row input[type=file]{display:block!important;width:100%!important;margin-top:5px!important;box-sizing:border-box!important;border:1px solid #d4deea!important;border-radius:6px!important;background:#fff!important;color:#17395f!important;padding:7px!important;font-size:10px!important;}
.had-edit-savebar{display:flex!important;gap:9px!important;align-items:center!important;margin-top:15px!important;padding-top:14px!important;border-top:1px solid #e5ebf2!important;}
@media(max-width:1050px){.had-edit-summary{grid-template-columns:1fr 1fr 1fr!important}.had-edit-photo{grid-column:auto!important}.had-edit-grid{grid-template-columns:1fr!important;}}
@media(max-width:700px){.had-edit-summary{grid-template-columns:1fr 1fr!important}.had-edit-summary-main{grid-column:1/-1!important}.had-field-grid{grid-template-columns:1fr!important}.had-field-grid .had-field-wide{grid-column:auto!important;}.had-photo-edit-row{grid-template-columns:76px 1fr!important;}}

/* v1.9.3 — Certificate edit Centre reassignment */
.had-edit-section-full{grid-column:1 / -1!important;}
.had-edit-section-full .had-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.had-edit-section-full input[readonly]{background:#f3f6fa!important;color:#53677f!important;cursor:not-allowed!important;}
@media(max-width:850px){.had-edit-section-full{grid-column:auto!important}.had-edit-section-full .had-field-grid{grid-template-columns:1fr!important;}}

/* v1.9.8 — Certificate action/preview toolbar: one-line controls and clear action colours. */
.had-cert-toolbar{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:6px!important;padding:12px 14px!important;background:#fff!important;border:1px solid #dfe6ee!important;border-radius:10px!important;margin-bottom:16px!important;box-shadow:0 4px 14px rgba(21,47,78,.06)!important;overflow-x:auto!important;}
.had-cert-toolbar>.had-btn,.had-cert-toolbar>.had-cert-print-form>.had-btn{flex:0 0 auto!important;white-space:nowrap!important;}
.had-cert-toolbar .had-cert-print-form{display:inline-flex!important;align-items:center!important;margin:0!important;flex:0 0 auto!important;}
.had-cert-toolbar .had-cert-type-active{background:#173f68!important;color:#fff!important;border:1px solid #173f68!important;}
.had-cert-toolbar .had-download-cert-btn{background:#b8860b!important;color:#fff!important;border:1px solid #9f7508!important;}
.had-cert-toolbar .had-other-format-btn{background:#6f42c1!important;color:#fff!important;border:1px solid #5d36a5!important;}
.had-cert-toolbar .had-print-btn{background:#0b7a45!important;color:#fff!important;border:1px solid #09683a!important;}
.had-cert-toolbar .had-muted-btn{background:#e9eef5!important;color:#17395f!important;border:1px solid #d7e0eb!important;}
.had-cert-toolbar .had-cert-back-btn{background:#e9eef5!important;color:#17395f!important;}
@media(max-width:900px){.had-cert-toolbar{justify-content:flex-start!important;flex-wrap:wrap!important;overflow-x:visible!important}.had-cert-toolbar .had-cert-print-form{display:inline-flex!important}}

/* v1.10.4: Template master resolver keeps exact saved course/type layout authoritative. */

/* v1.10.10: Unified gold toolbar dropdown text must be black/readable. */
.had-unified-designer-bar .had-edit-controls label{color:#fff!important;}
.had-unified-designer-bar .had-edit-controls select,
.had-unified-designer-bar .had-edit-controls select option,
.had-unified-designer-bar .had-edit-controls input{
    color:#000!important;
    -webkit-text-fill-color:#000!important;
    background:#fff!important;
    background-color:#fff!important;
}
.had-unified-designer-bar .had-edit-controls select option:checked{
    color:#000!important;
    background:#fff!important;
}

/* v1.10.13 — field-only print workflow. The physical certificate template is pre-printed. */
.had-print-fields-preview .him-cert-sheet{
    background-image:none!important;
    background-color:#fff!important;
    box-shadow:0 4px 18px rgba(20,43,72,.16)!important;
}
.had-print-fields-preview .cert-table-overlay{display:none!important;}
.had-print-fields-preview .him-cert-sheet:before{content:'PRINT FIELDS ONLY';position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:center;padding-top:7mm;box-sizing:border-box;color:#9aa6b5;font:700 11px/1 Arial,Helvetica,sans-serif;letter-spacing:1px;pointer-events:none;z-index:1;}
.had-print-fields-preview .cert-overlay,
.had-print-fields-preview .cert-sign{z-index:3;}
/* v2.7.3: Field-only Preview is intentionally a visual clone of the saved
   Edit Certificate render. Do not override any saved field typography or box
   geometry here. The only print-preview change is hiding the physical artwork. */
.had-print-preview-title{font-weight:800;color:#173f68;padding:8px 10px;background:#eef4fb;border:1px solid #d7e3ef;border-radius:6px;white-space:nowrap;}
.had-print-preview-link{background:#245a8d!important;color:#fff!important;border:1px solid #245a8d!important;}
.had-print-preview-now{background:#245a8d!important;color:#fff!important;border:1px solid #245a8d!important;}
@media print{
    .had-print-fields-preview .him-cert-sheet{background-image:none!important;background-color:#fff!important;box-shadow:none!important;}
    .had-print-fields-preview .him-cert-sheet:before{display:none!important;}
    .had-print-fields-preview .cert-table-overlay{display:none!important;}
}

/* v1.10.14 — completely isolate certificate field-only print pages from the Administrator shell. */
.had-clean-print-root{min-height:100vh;margin:0;padding:18px;background:#eef3f8;box-sizing:border-box;}
.had-clean-print-root .had-cert-preview-page{max-width:1100px;margin:0 auto;}
.had-clean-print-root .him-cert-sheet{margin:0 auto!important;background-image:none!important;background-color:#fff!important;box-shadow:0 4px 18px rgba(20,43,72,.16)!important;}
.had-clean-print-root .cert-table-overlay{display:none!important;}
.had-clean-print-root .had-cert-toolbar{justify-content:flex-end;}
@media print{
    .had-clean-print-root{min-height:0!important;padding:0!important;margin:0!important;background:#fff!important;}
    .had-clean-print-root .had-cert-preview-page{max-width:none!important;padding:0!important;margin:0!important;}
    .had-clean-print-root .him-cert-sheet{margin:0!important;box-shadow:none!important;background-image:none!important;background-color:#fff!important;}
    .had-clean-print-root .cert-table-overlay{display:none!important;}
}

/* v2.3.4 — Template selector auto-load + readable dropdown options. */
#had-template-select-form select{color:#173a61!important;background:#fff!important;color-scheme:light!important;}
#had-template-select-form select option,
.had-unified-designer-bar .had-edit-controls select option,
.had-unified-designer-bar .had-edit-controls select option:checked{color:#000!important;background:#fff!important;-webkit-text-fill-color:#000!important;}
.had-unified-designer-bar .had-edit-controls select{color:#000!important;background:#fff!important;color-scheme:light!important;-webkit-text-fill-color:#000!important;}

/* v2.3.5: native dropdown readability; keep option text black even when theme/browser styles override it. */
.had-edit-controls select{color:#000!important;background:#fff!important;}
.had-edit-controls select option{color:#000!important;background:#fff!important;}
.had-edit-controls select optgroup{color:#000!important;background:#fff!important;}

/* v2.3.6 — force native selected text black + reusable format loader UI. */
.had-unified-designer-bar .had-edit-controls select{appearance:none!important;-webkit-appearance:none!important;color:#000!important;-webkit-text-fill-color:#000!important;background-color:#fff!important;color-scheme:light!important;background-image:linear-gradient(45deg,transparent 50%,#173a61 50%),linear-gradient(135deg,#173a61 50%,transparent 50%)!important;background-position:calc(100% - 12px) 12px,calc(100% - 7px) 12px!important;background-size:5px 5px,5px 5px!important;background-repeat:no-repeat!important;}
.had-unified-designer-bar .had-edit-controls select option{color:#000!important;background:#fff!important;-webkit-text-fill-color:#000!important;}
.had-format-copy{display:flex!important;align-items:flex-end!important;gap:6px!important;margin-left:auto!important;flex-wrap:wrap!important;}
.had-format-copy label{display:flex!important;flex-direction:column!important;gap:3px!important;color:#fff!important;font-size:9px!important;font-weight:800!important;line-height:1!important;}
.had-format-copy select{height:30px!important;min-width:190px!important;border:1px solid #e2c66d!important;border-radius:5px!important;background:#fff!important;color:#000!important;font-size:11px!important;padding:3px 8px!important;}
.had-format-copy select option{color:#000!important;background:#fff!important;}
.had-copy-format-btn{height:30px!important;padding:0 10px!important;background:#173a61!important;color:#fff!important;border-color:#173a61!important;font-weight:800!important;}
.had-copy-format-btn:disabled{opacity:.55!important;cursor:not-allowed!important;}
@media(max-width:900px){.had-format-copy{margin-left:0!important;width:100%!important;}.had-format-copy select{min-width:150px!important;flex:1!important;}}


/* v2.3.7 FINAL — certificate editor native select readability. These rules intentionally
   come last so responsive/theme rules cannot override the selected value or options. */
html body .had-unified-designer-bar .had-edit-controls label select#had-selected-transform,
html body .had-unified-designer-bar .had-edit-controls label select#had-selected-font,
html body .had-unified-designer-bar .had-edit-controls select {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color-scheme: light !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important;
}
html body .had-unified-designer-bar .had-edit-controls select option,
html body .had-unified-designer-bar .had-edit-controls select optgroup {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    background: #ffffff !important;
    opacity: 1 !important;
    text-shadow: none !important;
}


/* v2.3.8 FINAL MAINTENANCE — native editor dropdowns must remain readable. */
html body .had-unified-designer-bar .had-edit-controls select#had-selected-transform,
html body .had-unified-designer-bar .had-edit-controls select#had-selected-font {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    background: #fff !important;
    color-scheme: light !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}
html body .had-unified-designer-bar .had-edit-controls select#had-selected-transform option,
html body .had-unified-designer-bar .had-edit-controls select#had-selected-font option {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    background-color: #fff !important;
}
html body .had-edit-savebar {
    position: relative !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 8px !important;
}
html body .had-edit-savebar .had-save-status {
    position: static !important;
    left: auto !important;
    transform: none !important;
    white-space: nowrap !important;
    margin: 0 !important;
}
html body .had-edit-savebar .had-format-copy {
    margin-left: auto !important;
    align-items: center !important;
}
html body .had-edit-savebar .had-format-copy select {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    background: #fff !important;
    color-scheme: light !important;
}
html body .had-edit-savebar .had-format-copy select option {
    color: #000 !important;
    background: #fff !important;
}
@media(max-width:900px){
    html body .had-edit-savebar { flex-wrap: wrap !important; }
    html body .had-edit-savebar .had-format-copy { margin-left: 0 !important; width: auto !important; }
}

/* v2.5.6 — final certificate workspace compactness + unified action targets. */
.had-cert-unified-bar{gap:7px!important;padding:10px 12px!important;overflow:visible!important}
.had-cert-unified-filters{gap:6px!important}
.had-cert-unified-filters .had-cert-course-select{flex:0 0 180px!important;width:180px!important}
.had-cert-unified-filters .had-cert-cycle-select{flex:0 0 112px!important;width:112px!important}
.had-cert-unified-filters .had-cert-search-input{flex:0 0 175px!important;width:175px!important}
.had-cert-unified-filters select,.had-cert-unified-filters input{height:36px!important;padding:6px 8px!important;font-size:11px!important}
.had-cert-filter-btn,.had-cert-reset-btn{height:36px!important;padding:0 11px!important;font-size:11px!important}
.had-inline-bulk-wrap{margin-left:auto!important;min-width:66px!important}
.had-inline-bulk-wrap>small{font-size:8px!important;letter-spacing:.1px!important}
.had-inline-bulk-actions{display:none!important}
.had-inline-bulk-btn.had-inline-bulk-unified{width:66px!important;height:34px!important;gap:4px!important;border-radius:6px!important;background:#f7fafc!important;color:#17395f!important}
.had-inline-bulk-unified .dashicons{font-size:16px!important;width:16px!important;height:16px!important}
.had-inline-bulk-unified .dashicons-printer{color:#0b7a45!important}
.had-inline-bulk-unified .dashicons-download{color:#9a7000!important}
.had-inline-bulk-unified:hover{background:#eaf3fb!important}
.had-cert-management-table{min-width:0!important;width:100%!important;table-layout:auto!important}
.had-cert-management-table th,.had-cert-management-table td{padding:7px 7px!important;font-size:10px!important;line-height:1.25!important}
.had-cert-management-table th:nth-child(1),.had-cert-management-table td:nth-child(1){width:34px!important;min-width:34px!important}
.had-cert-management-table th:nth-child(2),.had-cert-management-table td:nth-child(2){width:38px!important;min-width:38px!important}
.had-cert-management-table th:nth-child(3),.had-cert-management-table td:nth-child(3){width:48px!important;min-width:48px!important}
.had-cert-management-table th:nth-child(4),.had-cert-management-table td:nth-child(4){width:82px!important;min-width:82px!important}
.had-cert-management-table th:nth-child(5),.had-cert-management-table td:nth-child(5){min-width:92px!important;max-width:112px!important;white-space:normal!important}
.had-cert-management-table th:nth-child(6),.had-cert-management-table td:nth-child(6){min-width:92px!important;max-width:105px!important}
.had-cert-management-table th:nth-child(7),.had-cert-management-table td:nth-child(7){min-width:135px!important;max-width:165px!important;white-space:normal!important}
.had-cert-management-table th:nth-child(8),.had-cert-management-table td:nth-child(8){min-width:72px!important;max-width:82px!important;white-space:normal!important}
.had-cert-management-table th:nth-child(9),.had-cert-management-table td:nth-child(9){width:66px!important;min-width:66px!important}
.had-cert-management-table th:nth-child(10),.had-cert-management-table td:nth-child(10){width:58px!important;min-width:58px!important}
.had-cert-management-table th:nth-child(11),.had-cert-management-table td:nth-child(11){width:45px!important;min-width:45px!important}
.had-cert-management-table th:nth-child(12),.had-cert-management-table td:nth-child(12){width:76px!important;min-width:76px!important}
.had-cert-management-table th:nth-last-child(2),.had-cert-management-table td:nth-last-child(2){min-width:96px!important;width:96px!important;right:76px!important;position:sticky!important;background:#fff!important;z-index:3!important}
.had-cert-management-table th:last-child,.had-cert-management-table td:last-child{min-width:76px!important;width:76px!important;right:0!important;position:sticky!important;background:#fff!important;z-index:4!important;text-align:center!important}
.had-cert-management-table thead th:nth-last-child(2),.had-cert-management-table thead th:last-child{z-index:6!important}
.had-inline-cert-icons{gap:2px!important;padding:3px 4px!important}
.had-inline-cert-icons a{width:27px!important;height:27px!important}
.had-inline-cert-icons .dashicons{font-size:16px!important;width:16px!important;height:16px!important}
.had-row-manage-icons{display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;white-space:nowrap!important}
.had-row-manage-icons .had-edit-cert-btn,.had-row-manage-icons .had-delete-cert-btn{width:27px!important;height:27px!important;min-width:27px!important;font-size:15px!important;box-sizing:border-box!important}
.had-delete-cert-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;border:1px solid #ead0d0!important;border-radius:6px!important;background:#fff7f7!important;color:#b42318!important;text-decoration:none!important}
.had-delete-cert-btn:hover{background:#fdecec!important}
.had-delete-cert-btn .dashicons{font-size:15px!important;width:15px!important;height:15px!important}
.had-cert-selected-centre .had-centre-detail-avatar{width:70px!important;height:70px!important;object-fit:cover!important;border-radius:50%!important}
.had-cert-selected-centre .avatar{width:70px!important;height:70px!important}
.had-bulk-toolbar{gap:6px!important;padding:10px 12px!important}
.had-bulk-toolbar>.had-btn{font-size:11px!important;padding:7px 10px!important}
.had-bulk-selected-title{padding:8px 12px!important}
.had-bulk-selected-title strong{font-size:12px!important}
.had-bulk-selected-title span{font-size:10px!important}
.had-cert-bulk-view-panel{max-width:1200px!important;margin-left:auto!important;margin-right:auto!important}
.had-cert-bulk-print-root .had-cert-selected-centre{max-width:1200px!important;margin-left:auto!important;margin-right:auto!important}
@media(max-width:1100px){
 .had-cert-unified-bar{flex-wrap:wrap!important}
 .had-cert-unified-filters{width:100%!important;flex-basis:100%!important}
 .had-cert-unified-filters .had-cert-course-select,.had-cert-unified-filters .had-cert-cycle-select,.had-cert-unified-filters .had-cert-search-input{flex:1 1 auto!important;width:auto!important}
}
@media(max-width:760px){
 .had-cert-unified-filters{display:grid!important;grid-template-columns:1fr 1fr!important}
 .had-cert-unified-filters .had-cert-search-input{grid-column:1/-1!important;width:100%!important}
 .had-inline-bulk-wrap{margin-left:0!important}
}

/* v3.0.4 — New Template workflow polish */
.had-unified-designer-bar.had-floating-format-bar{cursor:move;position:sticky;top:0;z-index:1200;box-shadow:0 5px 16px rgba(20,43,72,.18)}
.had-unified-designer-bar.had-floating-format-bar input,.had-unified-designer-bar.had-floating-format-bar select,.had-unified-designer-bar.had-floating-format-bar button{cursor:auto}
.had-library-signatures-after-result{width:72%;margin-left:auto!important}
.had-library-signatures-after-result .had-library-signature-item{width:100%;box-sizing:border-box}

/* v3.0.5 — keep signature upload panel aligned inside the left library, not pushed to far right */
.had-library-signatures-after-result{width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}
.had-library-signatures-after-result .had-library-signature-item{width:100%!important;box-sizing:border-box!important}
/* v3.1.2 semester-specific theory/practical heading controls */
.had-library-field[data-field^="theory_head_"],.had-library-field[data-field^="practical_head_"]{width:47%!important;min-height:28px!important;justify-content:center!important;text-align:center!important;font-size:10px!important}

/* v3.1.5 — semester head spacing + clean two-year Full Preview */
.had-semester-head-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:18px!important;
  padding:0 12px!important;
  margin:8px 0 10px!important;
  align-items:center!important;
}
.had-semester-head-row .had-sem-head-field,
.had-library-field.had-sem-head-field{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:34px!important;
  box-sizing:border-box!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  padding:7px 10px!important;
}
.had-two-year-preview-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:0!important;
  align-items:start!important;
  width:100%!important;
}
.had-year-preview-pane{min-width:0!important;padding:0 14px!important;box-sizing:border-box!important}
.had-year-preview-pane-2{border-left:1px solid #d9e0e8!important}
.had-preview-year-label{
  text-align:center!important;
  font-size:16px!important;
  font-weight:800!important;
  color:#17385f!important;
  background:transparent!important;
  padding:5px 0 9px!important;
  margin:0!important;
}
.had-two-year-preview-grid .had-live-preview{margin:0 auto!important}
@media(max-width:900px){
 .had-two-year-preview-grid{grid-template-columns:1fr!important}
 .had-year-preview-pane-2{border-left:0!important;border-top:1px solid #d9e0e8!important;margin-top:14px!important;padding-top:10px!important}
}
