body {
    margin: 0;
    padding: 0;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: #333;
    background-color: #f9f9f9;
}

h1 {
    margin: 0 0 15px;
    font-size: 24px;
    font-weight: bold;
    color: #2e3d75;
}

p {
    font: 14px/24px Verdana, Arial, Helvetica, sans-serif;
    margin: 0 0 16px;
}

#Content > p {
    margin: 0;
    text-indent: 30px;
}

a {
    color: #0077cc;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
    background-color: #e0f0ff;
}

#Header {
    font-size: 20px;
    padding: 20px;
    background-color: #eee;
    border-bottom: 1px solid #ccc;
    text-align: center;
    color: #2e3d75;
}

#Content {
    max-width: 96%;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
    border-radius: 6px;
}

#Menu {
    background-color: #f0f0f0;
    border: 1px dashed #aaa;
    padding: 15px;
    margin-top: 20px;
    font-size: 13px;
}

.error {
    color: #d00;
    font-weight: bold;
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    #Header {
        font-size: 18px;
        padding: 15px 10px;
    }

    #Content {
        padding: 15px;
        margin: 10px;
    }

    #Menu {
        margin-top: 20px;
        padding: 10px;
        border: none;
        background-color: #fafafa;
    }

    table {
        width: 100%;
        font-size: 13px;
    }

    input, textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 14px;
    }
}
  #imageModal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    text-align: center;
  }
  #imageModal img {
    max-width: 80%;
    max-height: 80%;
    border: 4px solid #fff;
    border-radius: 8px;
  }
    .emoji-image {
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
  display: inline-block;
}

.emoji-image:hover {
  transform: scale(1.5);
  color: red;
  cursor: pointer;
}
    .rev {font-size: 0.7em;}
  .tbl-container{
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nice-table{
    width: 100%;
    border-collapse:;
    border-spacing: 0;
    table-layout: fixed;            
    background: #fff;
  }

  .nice-table thead th{
    position: sticky;
    top: 0;
    z-index: 2; color: white;
    background: #3b75b9;
    border-bottom: 2px solid #e5e7eb;
  }

  .nice-table th,
  .nice-table td{
    padding: 10px 12px;
    border: 2px solid #eef0f3;
    vertical-align: top;
  }

  .nice-table td,
  .nice-table th{
    word-break: break-word;          
    overflow-wrap: anywhere;
  }

  .nice-table tbody tr:nth-child(even){
    background: #f7f2ce;
  }

  .nice-table td:first-child,
  .nice-table th:first-child{
    width: 180px;
  }

  .col-narrow{ width: 120px; }
  .col-icon{ width: 60px; text-align: center; }

  .badge{
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    white-space: nowrap;
  }
  .badge.pending{ background:#fff7ed; color:#9a3412; }
  .badge.rejected{ background:#fee2e2; color:#991b1b; }
  .badge.approved{ background:#dcfce7; color:#166534; }

  .stack{
    display: grid;
    gap: 6px;
  }
  .chip{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
  }
  .chip .rev{ opacity: .75; font-weight: 600; }
  .chip .code{ font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

  .img-icon{
    width: 28px; height: 28px;
    object-fit: cover;
    border-radius: 6px;
    cursor: zoom-in;
    border: 1px solid #e5e7eb;
  }

  .img-modal img{
      position: fixed; inset: 0; 
    max-width: 90vw;
    max-height: 80vh;
    display: block;
      z-index: 2147483647 !important;
  }
 #imageModal{
    position: fixed;      
    inset: 0;
    background: rgba(0,0,0,.8);
    display: none;
    z-index: 2147483647;  
    cursor: zoom-out;
  }
  #modalImage{
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    margin: 5vh auto 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
  }

  img.app-logo{
    width: 90px; height: 90px; object-fit: contain;
  }
  .navbar-brand span{
    font-size: 1.05rem;
  }
  #Content{
    padding: 18px;
  }
  html[lang="ar"] body .navbar .nav-link{
    font-size: 0.95rem;
  }


    #imageModal{position:fixed;inset:0;background:rgba(0,0,0,.8);display:none;z-index:2147483647;cursor:zoom-out}
    #modalImage{max-width:90vw;max-height:90vh;display:block;margin:5vh auto;background:#fff;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.4)}
    .thumb{width:32px;height:32px;object-fit:cover;border-radius:6px;border:1px solid #e5e7eb;vertical-align:middle}
    .code{font-family:ui-monospace, SFMono-Regular, Menlo, monospace}