
.modern-search-form {
    max-width: 700px;
    margin: 30px auto 20px auto;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.modern-search-form input {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.modern-search-form button {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.modern-card-listing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 30px auto;
}
.case-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
}
.case-card p {
    margin: 0 0 5px;
    color: #444;
}
.case-card a {
    display: inline-block;
    margin-top: 10px;
    background: #0073aa;
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    text-decoration: none;
}
.case-card a:hover {
    background: #005d8f;
}
.pagination {
    text-align:center;
    margin: 30px auto;
}
.pagination a {
    display: inline-block;
    margin: 0 5px;
    background: #0073aa;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
}
.ajax-loader {
    text-align: center;
    display: none;
    margin-top: 10px;
}
.ajax-loader img {
    width: 32px;
    height: 32px;
}
.lcm-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 999;
}
.lcm-modal {
    background: white;
    width: 90%;
    max-width: 600px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}
.lcm-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
}
.lcm-modal-content {
    max-height: 70vh;
    overflow-y: auto;
}

.lcm-msg{font-size:14px}.lcm-msg.error{color:#b00020}.lcm-msg.info{color:#0a66c2}.lcm-result-list{list-style:disc;padding-left:20px}


/* --- LCM Box Result Layout --- */
.lcm-box-list{ display:grid; grid-template-columns:1fr; gap:14px; }
.lcm-result-box{ border:1px solid #e5e7eb; border-radius:10px; padding:12px 14px; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.04); }
.lcm-box-row{ margin:6px 0; font-size:14px; }
.lcm-box-label{ font-weight:600; margin-right:6px; }
.lcm-box-actions{ margin-top:8px; }
.lcm-result-box .lcm-view{ padding:6px 10px; border:0; background:#0ea5e9; color:#fff; border-radius:6px; cursor:pointer; }
.lcm-box-loading{ padding:14px; font-style:italic; color:#475569; }
@media(min-width: 720px){
  .lcm-box-list{ grid-template-columns:1fr 1fr; }
}


/* --- LCM Modern Box Layout v15 --- */
.lcm-box-list{ display:grid; grid-template-columns: 1fr; gap:16px; }
@media(min-width: 768px){ .lcm-box-list{ grid-template-columns: 1fr 1fr; } }
@media(min-width: 1100px){ .lcm-box-list{ grid-template-columns: 1fr 1fr 1fr; } } /* 3 per row */

.lcm-result-box{
  border:1px solid #e5e7eb; border-radius:14px;
  padding:16px 18px; background:#ffffff;
  box-shadow:0 4px 10px rgba(0,0,0,.05);
  transition: box-shadow .2s ease, transform .1s ease, border-color .2s ease;
}
.lcm-result-box:hover{ box-shadow:0 10px 24px rgba(0,0,0,.08); transform: translateY(-1px); border-color:#d1d5db; }
.lcm-box-row{ margin:8px 0; font-size:14px; color:#0f172a; display:flex; gap:6px; flex-wrap:wrap; }
.lcm-box-label{ font-weight:700; color:#334155; min-width:80px; }
.lcm-box-value{ font-weight:500; }

.lcm-btn{
  padding:8px 12px; border-radius:8px; border:0; cursor:pointer;
  background:#0ea5e9; color:#ffffff; font-weight:600;
  box-shadow: 0 2px 6px rgba(14,165,233,.3);
}
.lcm-btn:hover{ background:#0284c7; }
.lcm-actions-top{ margin-bottom:10px; }
.lcm-loading{ position:relative; }
.lcm-loading:after{
  content:'Loading…'; position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  color:#475569; background:rgba(255,255,255,.6); backdrop-filter: blur(1px);
  border-radius:14px; font-style:italic;
}


/* Ensure title (and other values) can span full width in the summary box */
.lcm-box-row {
  display: block;
}
.lcm-box-row .lcm-box-value {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}
/* Make three boxes per row on large screens as requested earlier */
@media(min-width: 1100px){
  .lcm-box-list{ grid-template-columns: 1fr 1fr 1fr; }
}


/* --- LCM Results Table Layout --- */
.lcm-table-wrap{ width:100%; overflow:auto; background:#fff; border:1px solid #e5e7eb; border-radius:12px; box-shadow:0 1px 2px rgba(0,0,0,.04); }
.lcm-results-table{ width:100%; border-collapse:collapse; font-size:14px; }
.lcm-results-table thead th{ text-align:left; font-weight:700; background:#f8fafc; padding:12px; border-bottom:1px solid #e5e7eb; }
.lcm-results-table tbody td{ padding:12px; border-bottom:1px solid #f1f5f9; vertical-align:top; }
.lcm-td-title{ width:100%; }
.lcm-td-title, .lcm-td-case{ word-break:break-word; }
.lcm-td-action{ white-space:nowrap; }
.lcm-results-table tr:hover td{ background:#f9fbff; }
@media (max-width: 640px){
  .lcm-results-table thead{ display:none; }
  .lcm-results-table tr{ display:block; border-bottom:1px solid #eef2f7; }
  .lcm-results-table td{ display:block; padding:10px 12px; }
  .lcm-results-table td.lcm-td-action{ padding-bottom:14px; }
  .lcm-results-table td::before{ content:attr(data-label); font-weight:600; display:block; margin-bottom:4px; color:#475569; }
}


/* Responsive tweaks for results table */
.lcm-table-wrap { overflow-x: auto; }
@media (max-width: 640px){
  .lcm-results-table { display: block; }
  .lcm-results-table tbody { display: block; }
  .lcm-results-table tr { display: block; margin: 10px 0; border:1px solid #e5e7eb; border-radius:10px; }
  .lcm-results-table td { display: block; }
}


/* --- Scoped styles to prevent theme/footer conflicts --- */
#lcm-wrap .modern-search-form { max-width: 700px; margin: 30px auto 20px auto; display: flex; gap: 10px; justify-content: center; }
#lcm-wrap .modern-search-form input { flex: 1; padding: 10px; border-radius: 6px; border: 1px solid #ccc; }
#lcm-wrap .modern-search-form button { background: #0073aa; color: #fff; border: 0; padding: 10px 14px; border-radius: 6px; cursor: pointer; }

#lcm-wrap .lcm-msg { margin: 10px auto; max-width: 900px; padding: 10px 12px; border-radius: 8px; }
#lcm-wrap .lcm-msg.ok { background:#ecfdf5; color:#065f46; }
#lcm-wrap .lcm-msg.err{ background:#fef2f2; color:#7f1d1d; }

#lcm-wrap .lcm-table-wrap{ width:100%; overflow:auto; background:#fff; border:1px solid #e5e7eb; border-radius:12px; box-shadow:0 1px 2px rgba(0,0,0,.04); }
#lcm-wrap .lcm-results-table{ width:100%; border-collapse:collapse; font-size:14px; }
#lcm-wrap .lcm-results-table thead th{ text-align:left; font-weight:700; background:#f8fafc; padding:12px; border-bottom:1px solid #e5e7eb; }
#lcm-wrap .lcm-results-table tbody td{ padding:12px; border-bottom:1px solid #f1f5f9; vertical-align:top; }
#lcm-wrap .lcm-td-title{ width:100%; }
#lcm-wrap .lcm-td-title, #lcm-wrap .lcm-td-case{ word-break:break-word; }
#lcm-wrap .lcm-td-action{ white-space:nowrap; }
#lcm-wrap .lcm-results-table tr:hover td{ background:#f9fbff; }
#lcm-wrap .lcm-btn{ padding:8px 12px; border-radius:8px; border:0; cursor:pointer; background:#0ea5e9; color:#ffffff; font-weight:600; box-shadow: 0 2px 6px rgba(14,165,233,.3); }
#lcm-wrap .lcm-btn:hover{ background:#0284c7; }
#lcm-wrap .lcm-actions-top{ margin-bottom:10px; }
#lcm-wrap .lcm-loading{ position:relative; }
#lcm-wrap .lcm-loading:after{ content:'Loading…'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#475569; background:rgba(255,255,255,.6); backdrop-filter: blur(1px); border-radius:14px; font-style:italic; }

@media (max-width: 640px){
  #lcm-wrap .lcm-results-table thead{ display:none; }
  #lcm-wrap .lcm-results-table { display:block; }
  #lcm-wrap .lcm-results-table tbody { display:block; }
  #lcm-wrap .lcm-results-table tr { display:block; margin: 10px 0; border:1px solid #e5e7eb; border-radius:10px; }
  #lcm-wrap .lcm-results-table td { display:block; }
  #lcm-wrap .lcm-results-table td::before{ content:attr(data-label); font-weight:600; display:block; margin-bottom:4px; color:#475569; }
}


#lcm-wrap .lcm-case-details h2{ margin:14px 0; font-size:18px; }
#lcm-wrap .lcm-details-table{ width:100%; border-collapse:collapse; margin-top:10px; }
#lcm-wrap .lcm-details-table th{ text-align:left; width:200px; background:#f8fafc; padding:10px; border-bottom:1px solid #e5e7eb; }
#lcm-wrap .lcm-details-table td{ padding:10px; border-bottom:1px solid #f1f5f9; }

#lcm-wrap #lcm-details-container{ margin-top:16px; }
#lcm-wrap #lcm-details-container .lcm-details-wrap{ background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:14px; box-shadow:0 1px 2px rgba(0,0,0,.04); }


/* Per-row expansion styles */
#lcm-wrap tr.lcm-detail-row td { padding: 0; background: transparent; }
#lcm-wrap .lcm-detail-box { margin: 8px 0 12px 0; background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:14px; box-shadow:0 1px 2px rgba(0,0,0,.04); }
#lcm-wrap .lcm-detail-actions { display:flex; justify-content:flex-end; margin-bottom:8px; }
#lcm-wrap .lcm-detail-box.lcm-loading { position:relative; min-height:120px; }
#lcm-wrap .lcm-detail-box.lcm-loading:after { content:'Loading…'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#475569; background:rgba(255,255,255,.6); border-radius:12px; }
