.thaivibot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.thaivibot-col {
  border: 1px solid #EAEAEA;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
}

.thaivibot-header {
  height: 40px;
  background-color: #2D2C26;
  color: #fff;
  display: flex;
  align-items: center;
  /*padding: 0 12px;*/
  font-weight: bold;
}
/*.thaivibot-content {
  height: 280px;
  overflow-y: auto;
  padding: 0.5em 12px;
  position: relative;
    width: 97.5%;
}
.thaivibot-content.waiting_loading {
   align-content: center;
     text-align: center;
}*/
.thaivibot-content {
  height: 280px;
  overflow-y: auto;
  padding: 0.5em 12px;
  position: relative;
  width: 97.5%;
  box-sizing: border-box;
}

/* ตอน loading */
.thaivibot-content.waiting_loading {
  display: flex;
  justify-content: center;   /* จัดกลางแนวนอน */
  align-items: center;       /* จัดกลางแนวตั้ง */
  text-align: center;
  overflow: hidden;
}

/* ตัว loading */
.thaivibot-content.waiting_loading .loading {
  margin: 0 auto;
  flex: 0 0 auto;
}
.thaivibot-content .loading,.pdf_thaivibot_loading, .stock_new_loading {
  /*position: absolute;*/
      /*top: 15%;*/

  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%);
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #7FB036; /* Green */
  border-radius: 50%;
  animation: spin 2s linear infinite;
}
.thaivibot-content .loading {
    position: relative;
    /* left: 30%; */
    display: block;
    justify-self: anchor-center;
    align-content: center;
}

.pdf_thaivibot_loading{
        align-content: center;
    display: inline-block;
}
.stock_new_loading{
    position: static;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    width: 10px;
    height: 10px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #7FB036; /* Green */
}
/* .content เป็น block ธรรมดา */
.thaivibot-content .content {
  width: 100%;
  margin-top: 0;
  display: block;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.thaivibot-content .content {
  width: 100%;
  margin-top: 0;
  display: block;
}
.thaivibot-content .row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0.8em 0 0;
}

.thaivibot-content .col-1 {
    flex: 1;
    padding-right: 0px;
    width: 80%;
}

.thaivibot-content .col-2 {
    font-family: Kanit;
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
    white-space: nowrap;
    flex: 1;
    width: 20%;

}

.thaivibot-content .stock-code {
    font-family: Kanit;
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    display: block;
    color: inherit;
    text-decoration: none;
    margin-bottom: 0.8em;
}

.thaivibot-content .stock-title {
    font-family: Thonburi;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
}
.thaivibot-content hr{ border-color: #EAEAEA; }
.thaivibot-header .set-header {
  display: flex;
  align-items: center;
  background-color: #2E2C26; /* สีพื้นหลังด้านขวา */
  border-radius: 5px 5px 0 0;
  overflow: hidden;
}

.thaivibot-header .set-logo-box {
  position: relative;
  width: 88px;
  height: 40px;
  background-color: #EAEAEA;
  clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thaivibot-header  .set-title {
  color: white;
  font-family: Kanit, sans-serif;
  padding-left: 10px;
  font-size: 16px;
  font-weight: 500;
}
.thaivibot-row-wrapper {
  position: relative;
  margin-bottom: 20px;
}
.thaivibot-row-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  position: relative;
  font-family: Kanit, sans-serif;
  font-size: 13px;
  color: #333;
}
.date-info {
  color: #555;
}

.switch-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-text {
  color: #333;
}
.section-viewtopic .stock-news {
    margin-top: 2em;
}
.thaivibot-content  .error{    
        position: absolute;
        top: 45%;
        color: #DADADA !important;
        font-family: Kanit;
        font-weight: 400;
        font-size: 16px;
        width: 98%;
        text-align: center;

}
a.button.see-all-news {
    background: transparent;
    font-size: 14px;
    color: #272522;  
    height: 24px;
    border: 1px solid #DADADA;
    border-radius: 4px;
    padding: 0.2em 1em;
}
.thaivibot-content .row.stock_desc{    margin: 0 0 1em;    display: block;}
.stock-row{cursor: pointer;    width: 100%;}
.thaivibot-content  .stock-row:hover {text-decoration:none;color: inherit;}
.thaivibot-header .set-logo-box img{height:16px;}
.switch-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    /*width: 40%;*/
}
.action-bar.bar-top .switch-toggle {width: 30%;}
.switch-toggle input {
    display: none;
}

/* พื้นหลังสวิตช์ */
.switch-toggle .slider {
    position: relative;
    width: 32px;
    height: 16px;
    background-color: #DADADA; /* ซ้าย */
    border-radius: 20px;
    transition: background-color 0.3s;
}

/* ปุ่มกลม */
.switch-toggle .slider::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    left: 3px;
    top: 2px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s;
}

/* เปิด = เลื่อนไปขวา + สีเขียว */
.switch-toggle input:checked + .slider {
    background-color: #7FB036;
}

.switch-toggle input:checked + .slider::before {
    transform: translateX(15px);
}

/* ข้อความ */
.switch-toggle .toggle-text {
    font-size: 12px;
    color: #6b6b6b;
}
.stock-news .switch-toggle{width: auto;}
.under-construction {
    display: block;
    text-align: center;
}
.action-bar.bar-bottom .switch-toggle{width: 40%;}
.post.stock_new.no-data {
    background-color: #FFF;
    margin: 0em 0 4em 0;
    padding: 1em;
    text-align: center;
}
.row-sub {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.row-sub .subcomment-post {
    flex: 1 1 auto;
    min-width: 0;
}

.row-sub .post-buttons {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
}

.row-sub .post-buttons li {
    margin: 0;
    padding: 0;
}

.row-sub .post-buttons .button {
    margin: 0;
}
.stock_new_subcomment .row-sub a.button.button-icon-only {
        border: 1px solid #DADADA;
    border-radius: 4px;
    padding: 0.2em;
    background-color: #0000;
    color: #272522;
    line-height: 1.5;
    height: 25px;
    width: 1.8em;
}
.stock_new_subcomment .row-sub a.button.button-icon-only i.icon  { line-height: 0;}
.button_download.download_file > img{margin-right:0.5em; }
