body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
    background: #f4f5f7;
}

/* Layout */
.layout {
    display: flex;
    min-height: 60vw;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #0747a6;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sidebar .logo {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
}

.sidebar a {
    color: white;
    text-decoration: none;
    padding: 10px 0;
    opacity: 0.9;
}

.sidebar a:hover {
    opacity: 1;
}

.queue-block {
    margin-top: 14px;
    margin-bottom: 8px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 12px;
}

.queue-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
    margin-bottom: 8px;
}

.sidebar a.queue-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.queue-row {
    position: relative;
    display: flex;
    align-items: center;
}

.queue-remove-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(248,113,113,0.55);
    background: rgba(127,29,29,0.22);
    color: #fecaca;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    z-index: 2;
}

.queue-remove-btn:hover {
    background: rgba(220,38,38,0.95);
    border-color: rgba(252,165,165,0.9);
    color: #fff;
}

.queue-row .queue-link {
    width: 100%;
}

.queue-row.has-remove .queue-link {
    padding-right: 44px;
}

.queue-row.has-remove .queue-count {
    margin-right: 24px;
}

.sidebar a.queue-link.active {
    background: rgba(255,255,255,0.2);
    opacity: 1;
    font-weight: 600;
}

.queue-count {
    background: rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

.queue-create-btn {
    margin-top: 6px;
    width: 100%;
    border: 1px dashed rgba(255,255,255,0.5);
    background: transparent;
    color: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
    opacity: 0.95;
}

.queue-create-btn:hover {
    background: rgba(255,255,255,0.15);
}

.alert-error {
    background: #ffebe6;
    color: #bf2600;
    border: 1px solid #ffbdad;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.select2-container--default .select2-selection--single {
    min-height: 40px;
    border: 1px solid #d6deea;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 2px rgba(15,23,42,0.06), inset 0 1px 0 rgba(255,255,255,0.7);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
    padding-left: 12px;
    padding-right: 34px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: 10px;
}

.select2-dropdown {
    border: 1px solid #d6deea;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(2,8,23,0.14);
    overflow: hidden;
    margin-top: 6px;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.16);
}

.select2-results__option {
    font-size: 13px;
    padding: 8px 10px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #e8f1ff;
    color: #0f172a;
}

.select2-container--default .select2-results__option--selected {
    background: #f2f7ff;
    color: #0b63e5;
    font-weight: 600;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #d7deea;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
}

.select2-search--dropdown {
    padding: 9px;
}

.form-group .select2-container {
    width: 100% !important;
}

.filter-bar .select2-container {
    min-width: 165px;
}

.filter-bar .select2-container--default .select2-selection--single {
    min-height: 39px;
    border-radius: 8px;
}

.filter-bar .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 37px;
}

.queue-dependent-select + .select2-container {
    margin-top: 10px;
}

.select2-container--default .select2-selection--multiple {
    min-height: 42px;
    border: 1px solid #d6deea;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 2px rgba(15,23,42,0.06), inset 0 1px 0 rgba(255,255,255,0.7);
    padding: 4px 7px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.select2-container--default.select2-container--open .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.16);
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 0;
    border: 1px solid #bfdbfe;
    background: #eaf2ff;
    color: #0f3f8c;
    border-radius: 999px;
    padding: 5px 10px 5px 8px;
    font-size: 12px;
    font-weight: 600;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #1d4ed8;
    margin-right: 6px;
    border-right: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #dc2626;
    background: transparent;
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin-top: 4px;
    margin-left: 2px;
    font-size: 13px;
    min-width: 140px !important;
}

.select2-container--default .select2-results__group {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}

.confirm-modal-content {
    max-width: 520px;
}

.confirm-modal-body {
    padding: 6px 0 8px;
    color: #334155;
}

.danger-btn {
    background: #dc2626;
}

.danger-btn:hover {
    background: #b91c1c;
}

/* Main */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    background: white;
    padding: 15px 30px;
    display: flex;
    align-items:center;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.search-group{
    display:flex;
    align-items:center;
    gap:8px;
}
.filter-bar{
    display:flex;
    align-items:center;
    gap:8px;
    margin-left: 20px;
}
.filter-select{
    padding:8px 10px;
    border:1px solid #dfe1e6;
    border-radius:6px;
    background:#f8fafc;
    font-size:13px;
    color:#0f172a;
    box-shadow:0 1px 2px rgba(15,23,42,0.05) inset;
}
.filter-select:focus{
    outline:none;
    border-color:#3b82f6;
    box-shadow:0 0 0 3px rgba(59,130,246,0.15);
}

.user-info a {
    margin-left: 15px;
    text-decoration: none;
    color: #0052cc;
}

/* Content */
.content {
    padding: 30px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.create-btn {
    background: #0052cc;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.create-btn:hover {
    background: #0747a6;
}

/* Modern Table */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

.modern-table th {
    text-align: left;
    background: #0052cc;
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
}

.modern-table td {
    padding: 12px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.modern-table tr:hover {
    background: #f0f4ff;
}

/* Status Badges */
.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge.small{
    font-size:12px;
    padding:6px;
    border-radius:50%;
    min-width:30px;
    min-height:30px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#e2e8f0;
    color:#0f172a;
    font-weight:700;
    box-shadow: inset 0 0 0 1px rgba(15,23,42,0.05);
}

.status-in-progress {
    background: #deebff;
    color: #0747a6;
}

.status-tested {
    background: #e3fcef;
    color: #006644;
}

.status-closed {
    background: #ffebe6;
    color: #bf2600;
}

/* Priority */
.priority {
    font-weight: 600;
    font-size: 13px;
}

.priority-high {
    color: #de350b;
}

.priority-medium {
    color: #ff8b00;
}

.priority-low {
    color: #00875a;
}


.auth-container {
    width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.auth-container input {
    width: 372px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #dfe1e6;
    border-radius: 4px;
}

.auth-container button {
    width: 100%;
    padding: 12px;
    background: #0052cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.auth-container button:hover {
    background: #0747a6;
}

table {
    background: white;
    margin: 40px auto;
    width: 90%;
    border-collapse: collapse;
}

th {
    background: #0052cc;
    color: white;
    padding: 10px;
}

td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.issue-link {
    text-decoration: none;
    color: #0052cc;
    font-weight: 600;
}

.issue-link:hover {
    text-decoration: underline;
}

.issue-container {
    padding: 30px;
    background: #f4f5f7;
}

.issue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.issue-meta {
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 6px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.issue-description,
.issue-comments {
    margin-top: 25px;
    background: white;
    padding: 20px;
    border-radius: 6px;
}

.editor-actions {
    margin-top: 15px;
}

.save-btn {
    background: #0052cc;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.cancel-btn {
    margin-left: 10px;
    text-decoration: none;
    color: #555;
}

.alert-success {
    background: #e3fcef;
    color: #006644;
    padding: 12px 18px;
    border-left: 4px solid #36b37e;
    margin: 20px 30px;
    border-radius: 4px;
    font-weight: 500;
}

.attachment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.attachment-item {
    width: 300px;   /* medium size */
}

.attachment-item img {
    max-width: 350px;
    max-height: 300px;
    width: auto;
    height: auto;
}


.attachment-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ck-content .image-inline{
    display: block !important;
    max-width: 500px !important;
}
/* Force images to break line properly */
.ck-content img,
.issue-description img {
    display: block !important;
    max-width: 500px !important;
    height: auto !important;
    margin: 15px 0 !important;
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
}

/* Prevent image wrapping */
.ck-content figure {
    display: block !important;
    max-width: 500px !important;
}

.attachments-box {
    margin-top: 25px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
}

.attachments-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.attachment-item {
    background: #f4f5f7;
    padding: 12px;
    border-radius: 6px;
    width: 200px;
    text-align: center;
    transition: 0.2s ease;
}

.attachment-item:hover {
    background: #e9ecef;
}

.file-icon {
    font-size: 28px;
}

.file-name {
    margin-top: 8px;
    font-size: 13px;
    word-break: break-word;
}


.modern-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9,30,66,0.54);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modern-modal-content {
    background: #fff;
    width: 750px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalFade 0.2s ease;
}

.modern-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modern-close {
    font-size: 24px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.half {
    flex: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dfe1e6;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4c9aff;
    box-shadow: 0 0 0 2px rgba(76,154,255,0.2);
}

.upload-box {
    border: 2px dashed #dfe1e6;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    background: #fafbfc;
}

.upload-box:hover {
    border-color: #4c9aff;
}

.upload-box input {
    display: none;
}

.upload-box p {
    margin: 0;
    color: #6b778c;
}

.modern-actions {
    text-align: right;
    margin-top: 20px;
}

.create-btn {
    background: #0052cc;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.create-btn:hover {
    background: #0747a6;
}

.cancel-btn {
    background: #f4f5f7;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    margin-right: 10px;
    cursor: pointer;
}

@keyframes modalFade {
    from {opacity:0; transform:translateY(-10px);}
    to {opacity:1; transform:translateY(0);}
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;   /* 🔥 THIS FIXES ALIGNMENT */
}


.upload-box {
    border: 2px dashed #dfe1e6;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    background: #fafbfc;
    transition: 0.2s ease;
}

.upload-box:hover {
    border-color: #4c9aff;
    background: #f0f7ff;
}

.upload-box input {
    display: none;
}

.file-preview {
    margin-top: 10px;
}

.file-item {
    background: #f4f5f7;
    padding: 6px 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 13px;
}

span.badge.status-open {
    background: #eaeaea;
    color: #0747a6;
}

.attachments-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
    gap:15px;
}

.attachment-card{
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    overflow:hidden;
    text-align:center;
}

.img-wrap{
    position:relative;
}

.thumb{
    width:100%;
    height:120px;
    object-fit:cover;
}

.overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.45);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    opacity:0;
    transition:0.2s;
}

.img-wrap:hover .overlay{
    opacity:1;
}

.view-btn,
.download-btn{
    background:#fff;
    border:none;
    padding:8px 10px;
    border-radius:6px;
    cursor:pointer;
    font-size:16px;
}

.file-name{
    font-size:12px;
    padding:8px;
    word-break:break-all;
}

/* Lightbox */

.lightbox{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.9);
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.lightbox img{
    max-width:90%;
    max-height:90%;
}

.close-lightbox{
    position:absolute;
    top:20px;
    right:30px;
    font-size:40px;
    color:#fff;
    cursor:pointer;
}

.status-wrapper{
    position:relative;
    display:inline-block;
}

.status-pill{
    padding:6px 12px;
    border-radius:6px;
    font-weight:600;
    font-size:13px;
    cursor:pointer;
    display:inline-block;
}

/* Status colors */

.status-open{background:#DEEBFF;color:#0747A6;}
.status-in-progress{background:#FFF0B3;color:#7A5D00;}
.status-tested{background:#E3FCEF;color:#006644;}
.status-action-needed{background:#FFEBE6;color:#BF2600;}
.status-reopened{background:#EAE6FF;color:#403294;}
.status-resolved{background:#E3FCEF;color:#006644;}
.status-closed{background:#DFE1E6;color:#172B4D;}

.status-menu{
    display:none;
    position:absolute;
    top:35px;
    right:0;
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    box-shadow:0 8px 20px rgba(0,0,0,0.1);
    min-width:180px;
    z-index:100;
}

.status-option{
    padding:10px 14px;
    cursor:pointer;
}

.status-option:hover{
    background:#f4f5f7;
}

.issue-comments{
    margin-top:30px;
}

.comment-item{
    border-bottom:1px solid #e5e7eb;
    padding:12px 0;
    display:flex;
    gap:12px;
    align-items:flex-start;
}

.comment-author{
    display:flex;
    align-items:flex-start;
    gap:10px;
    min-width:120px;
    font-size:13px;
    color:#0f172a;
    line-height:1.3;
}

.comment-author span{
    color:#94a3b8;
    display:block;
    margin-left:0;
}

.comment-body{
    flex:1;
    background:#f8fafc;
    padding:10px 12px;
    border-radius:8px;
    border:1px solid #e5e7eb;
    color:#0f172a;
    line-height:1.55;
    white-space:normal;
    word-break:break-word;
}
.mention{
    color:#0f52cc;
    font-weight:700;
    text-decoration:none;
}
.mention:hover{
    text-decoration:underline;
}

.comment-form{
    margin-top:20px;
}

.comment-form textarea{
    width:100%;
    height:80px;
    padding:10px;
    border:1px solid #ccc;
    border-radius:6px;
}

.comment-form button{
    margin-top:8px;
    padding:8px 14px;
    background:#0052cc;
    color:white;
    border:none;
    border-radius:6px;
    cursor:pointer;
}

.comment-actions{
margin-top:6px;
}

.comment-actions button{
    background:none;
    border:none;
    color:#0052cc;
    cursor:pointer;
    font-size:13px;
    margin-right:10px;
}

.comment-actions button:hover{
    text-decoration:underline;
}

.mention-box{
    position:absolute;
    background:#fff;
    border:1px solid #ddd;
    border-radius:6px;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
    display:none;
    z-index:999;
    max-width:250px;
}

.mention-item{
    padding:8px 12px;
    cursor:pointer;
}

.mention-item:hover{
    background:#f4f5f7;
}

#pagination{
    margin-top:25px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
}

.page-btn{
    background:#f4f5f7;
    border:1px solid #dfe1e6;
    padding:6px 12px;
    cursor:pointer;
    border-radius:4px;
    font-size:14px;
}

.page-btn:hover{
    background:#0052cc;
    color:white;
}

/* Active page */
.page-btn.active{
    background:#0052cc;
    color:white;
    border-color:#0052cc;
    font-weight:600;
}

.search-box{
    position:relative;
    width:350px;
}

.search{
    width:100%;
    padding:10px 10px;
    border-radius:6px;
    border:1px solid #ccc;
}

.search-results{
    position:absolute;
    top:38px;
    left:0;
    width:100%;
    background:white;
    border:1px solid #ddd;
    border-radius:6px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    display:none;
    z-index:1000;
    max-height:400px;
    overflow-y:auto;
}

.search-item{
    padding:10px;
    border-bottom:1px solid #eee;
    cursor:pointer;
}

.search-item:hover{
    background:#f4f5f7;
}

.search-title{
    font-size:14px;
}

.search-meta{
    font-size:12px;
    color:#888;
    margin-top:3px;
}

/* SETTINGS PAGE */

.settings-wrapper{
    display:flex;
    justify-content:center;
    padding:40px;
}

.settings-card{
    width:600px;
    background:#fff;
    border-radius:10px;
    padding:35px;
    box-shadow:0 4px 20px rgba(0,0,0,0.08);
}

.settings-header{
    margin-bottom:25px;
}

.settings-header h2{
    margin:0;
    font-size:24px;
    font-weight:600;
}

.settings-header p{
    margin-top:5px;
    color:#666;
    font-size:14px;
}

.form-group{
    margin-bottom:20px;
}

.form-group label{
    display:block;
    font-weight:600;
    margin-bottom:6px;
    font-size:14px;
}

.form-group input{
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:6px;
    font-size:14px;
    transition:0.2s;
}

.form-group input:focus{
    border-color:#0052cc;
    outline:none;
    box-shadow:0 0 0 2px rgba(0,82,204,0.15);
}

.settings-actions{
    margin-top:25px;
}

.save-btn{
    background:#0052cc;
    color:#fff;
    border:none;
    padding:12px 22px;
    border-radius:6px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
}

.save-btn:hover{
    background:#0747a6;
}

.drop-zone{
    border:2px dashed #bbb;
    padding:30px;
    text-align:center;
    border-radius:6px;
    cursor:pointer;
    background:#fafafa;
}

.drop-zone.dragging{
    background:#eef5ff;
    border-color:#0052cc;
}

.progress-row{
    margin-top:10px;
}

.progress-bar{
    width:100%;
    height:6px;
    background:#eee;
    border-radius:5px;
}

.progress{
    height:100%;
    width:0;
    background:#36b37e;
    border-radius:5px;
}

/* Modal background */
.modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.45);
    z-index:999;
}

/* Modal box */
.modal-box{
    background:#fff;
    width:460px;
    margin:120px auto;
    border-radius:10px;
    padding:25px;
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
    animation:modalFade .25s ease;
}

@keyframes modalFade{
    from{transform:translateY(-20px);opacity:0}
    to{transform:translateY(0);opacity:1}
}

/* header */
.modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.modal-header h3{
    margin:0;
    font-size:20px;
}

.close-modal{
    cursor:pointer;
    font-size:22px;
    color:#888;
}

.close-modal:hover{
    color:#000;
}

.modal-form input,
.modal-form select,
.form-row input,
.form-row select{
    width:100%;
    padding:10px;
    border:1px solid #ddd;
    border-radius:6px;
    font-size:14px;
}

.form-row{
    margin-bottom:14px;
}

.modal-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:15px;
}

/* buttons */
.btn-primary{
    background:#0052cc;
    color:white;
    border:none;
    padding:10px 16px;
    border-radius:6px;
    cursor:pointer;
    font-weight:500;
}

.btn-primary:hover{
    background:#0041a8;
}

.btn-secondary{
    background:#f4f5f7;
    border:none;
    padding:10px 16px;
    border-radius:6px;
    cursor:pointer;
}

.btn-secondary:hover{
    background:#e6e6e6;
}

/* action buttons in table */

.btn-edit{
    background:#e9f2ff;
    color:#0052cc;
    border:none;
    padding:6px 12px;
    border-radius:5px;
    cursor:pointer;
    font-size:13px;
}

.btn-toggle{
    background:#fff3cd;
    color:#856404;
    padding:6px 12px;
    border-radius:5px;
    text-decoration:none;
    font-size:13px;
}

.btn-reset{
    background:#f8d7da;
    color:#721c24;
    border:none;
    padding:6px 12px;
    border-radius:5px;
    cursor:pointer;
    font-size:13px;
}

.comment-body img.jira-image {
    max-width: 50% !important;
}

.activity-body img.jira-image {
    max-width: 100%;
}
