/* Shared styles extracted from inline <style> blocks and style attributes for strict CSP (no style-src 'unsafe-inline') */

.disable_btn {
    pointer-events: none;
    cursor: not-allowed;
}

#mycanvas {
    cursor: pointer;
    text-align: center;
}

div.loadingdiv {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    display: none;
    background: #000;
    opacity: 0.6;
    text-align: center;
}

div.loadingdiv.is-visible {
    display: block;
}

div.loadingdiv img {
    position: relative;
    vertical-align: middle;
    text-align: center;
    margin: 0 auto;
    margin-top: 50vh;
}

/* Reback attachment preview */
.attachment-preview {
    margin-top: 24px;
    display: grid;
    gap: 24px;
}

.attachment-item {
    display: block;
}

.attachment-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.attachment-item img,
.attachment-item iframe {
    width: 100%;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.attachment-item iframe {
    display: block;
    height: calc(100vh - 140px);
    height: calc(100dvh - 140px);
    min-height: 420px;
}

.attachment-item img {
    height: auto;
    min-height: 0;
}

.attachment-file {
    border: 1px solid #ddd;
    padding: 24px;
    text-align: center;
}

@media (max-width: 768px) {
    .attachment-item iframe {
        height: calc(100vh - 96px);
        height: calc(100dvh - 96px);
        min-height: 360px;
    }
}

/* Inline style attribute replacements */
.csp-text-center {
    text-align: center !important;
}

.csp-text-left {
    text-align: left !important;
}

.csp-search-bar {
    text-align: left !important;
    padding: 20px 0 !important;
}

.csp-search-input {
    display: inline !important;
    width: 200px !important;
}

.csp-table-white-center {
    background-color: #ffffff !important;
    text-align: center !important;
}

.csp-w-300 {
    width: 300px !important;
}

.csp-w-60p {
    width: 60% !important;
}

.csp-w-50p {
    width: 50% !important;
}

.csp-w-40p {
    width: 40% !important;
}

.csp-w-20p {
    width: 20% !important;
}

.csp-minw-180 {
    min-width: 180px !important;
}

.csp-minw-200 {
    min-width: 200px !important;
}

.csp-unit-label {
    min-width: 40px !important;
    margin-left: 10px !important;
}

.csp-industry-label {
    min-width: 120px !important;
    font-size: 1.2em !important;
    text-align: right !important;
}

.csp-notice-red {
    color: firebrick !important;
    padding-left: 30px !important;
}

.csp-mb-0 {
    margin-bottom: 0px !important;
}

.csp-h-600 {
    height: 600px !important;
}

.csp-m-20 {
    margin: 20px !important;
}
