/**
Theme Name: Vodaland Engineering Portal
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vodaland-engineering-portal
Template: astra
*/

/* CUSTOM DATATABLE*/
.table-toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.left-controls {
  align-self: end;
}
.left-controls,
.right-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}
.left-controls div {
    display: flex;
    align-items: center;
    gap: 10px;
}
.left-controls div span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.left-controls #deletionWrapProjects, .left-controls #deletionWrapDocuments, .left-controls #deletionWrapCalculations, .left-controls #deletionWrapRequest, .left-controls #deletionWrapDocSingle, .left-controls #deletionWrapTCSingle {
  display: none;
}
.show-control select {
  height: 30px;
  width: 60px;
  display: block;
}

.view-toggle .view-btn {
  border: 1px solid #ddd;
  background: #858585;
  padding: 6px 8px 2px;
  border-radius: 6px;
  cursor: pointer;
}
.view-toggle .view-btn.active {
  background: #111;
  color: #fff;
}
.view-toggle div {
  height: 30px;
}
.vd-datatable {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  table-layout: fixed;
}
.vd-datatable td, .vd-datatable th {
    border-left: 0;
    word-wrap: break-word;
}
.vd-datatable .actions a {
  text-decoration: none;
}
.dm-pagination a,
.dm-pagination span {
  margin: 0 4px;
}
.dm-pagination .active {
  font-weight: 700;
}
.dm-pagination .nav.disabled {
  pointer-events: none;
  opacity: 0.4;
}
.truncate {
  max-width: 420px;
}

.view-table #user-projects-cards,
.view-cards #user-projects-table,
.view-table #dm-cards,
.view-cards #dm-items-table, .view-cards #tc-items-table, .view-table #tc-cards, .view-table #tr-cards, .view-cards #tr-items-table, .view-cards #pc-items-table, .view-table #pc-cards{
  display: none;
}

.view-cards #user-projects-cards,
.view-cards #dm-cards, .view-cards #tc-cards, .view-cards #tr-cards, .view-cards #pc-cards{
  display: grid;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.card-wrap {
  position: relative;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 12px 12px 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-menu-toggle,
.dm-card-menu-toggle {
  border: none;
  background: #858585;
  font-size: 18px;
  line-height: 1;
  padding: 3px !important;
  border-radius: 2px !important;
  cursor: pointer;
}
.card-menu,
.dm-card-menu {
  position: absolute;
  top: 36px;
  right: 10px;
  display: none;
  min-width: 140px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  padding: 6px;
  z-index: 10;
}
.card-menu a,
.dm-card-menu a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #111;
}
.actions a {
    color: #000000;
}


/* Single-project TR view toggle visibility */
#ptr-list.view-table #ptr-cards { display: none; }
#ptr-list.view-cards #ptr-items-table { display: none; }

/* optional: keep grid spacing consistent when hidden/shown */
#ptr-cards { margin-top: 16px; }


/* Login/Logout Toggle */
.logout-btn, .logged-in .login-btn {
	display: none;
}
.logged-in .logout-btn {
	display: block;
}

/* Buttons */
button.primary,
.vd-create-wrap .vd-btn-primary{
    background:#00938D;
    font-size:16px;
    color:#fff;

}

.vd-create-wrap .vd-btn-secondary {
    border:1px solid #000;
    padding:8px 12px;
}

.vd-create-wrap .vd-btn-secondary:hover {
    background:#000;
    color:#fff;
}

.vd-create-wrap .vd-btn-primary:hover {
    background:#00AAA3;
}

.vd-create-wrap .vd-btn-primary {
    padding:8px 12px;
}

button.primary:hover {
    background:#00AAA3;
}

button.back-btn {
    color:#00928D;
    background:none;
    font-size:16px;
    box-shadow:none;
    padding-left:0;
  
}

button.back-btn  svg {
    margin-right:10px;
}

/* TABLE */
.table-scroll-wrap {
    overflow-x: auto;
}
.vd-datatable {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
}



/* MEDIA QUERIES */
@media (max-width: 768px) {
  .left-controls label {
      display: none;
  }
}
