/* wpdirectdebit styles sheet
 * Copyright 2022 Togethernet Ltd
 * All rights reserved
 */
 
/* admin styling */

.wpdd-dashicons {
    padding-top: 2px;
    padding-right: 6px;
}

.wpdd-tabs {
    border-top-left-radius: 6px; 
    border-top-right-radius: 6px;
	background: rgb(238,238,238); /* Old browsers */
	background: linear-gradient(.25turn, white, 10%, #dddddd); /* W3C */
    color: gray;
}

.wpdd-tabs.nav-tab-active {
  color: #ff9c00;
  background: #f0f0f1;
}

.wpdd-box-style {
    box-shadow: 1px 1px 6px #cccccc;
    background-color: #f7f7f7;
    margin-bottom: 30px;
    width: 97%;
}

.wpdd-box-style-sandbox {
    box-shadow: 1px 1px 6px #cccccc;
    background-color: #fff0d9;
    margin-bottom: 30px;
    width: 97%;
}

.sandbox-postbox {
    background-color: #fff0d9;
    padding-left: 17px;
    padding-right: 17px;
    padding-top: 1px;
    padding-bottom: 10px;
    border: solid 0px #f4f4f4;
    border-radius: 0px;
}

.wpdd-td {
    width: 10%;
}

.wpdd-td90 {
    width: 90%;
}

.whitesmoke {
    color: whitesmoke;
}

.wpdd-tables-content {
    padding: 0 0 0 0;
}

.wpdd-gc-link {
    color: black;
    background: #f2f35d;
    padding: 4px;
    border-radius: 3px;
    border: 1px solid black;
}


/** control buttons **/
.wpdd-controls {
    padding: 10px 0px;
}

.button.wpdd-direction-arrow,
.button.wpdd-sort-field,
.button.wpdd-controls-scroll,
.button.wpdd-controls-reset {
    background: rgb(238,238,238); /* Fallback color for old browsers */
    background: linear-gradient(25deg, #ffffff, 10%, #dddddd); /* Smooth gradient */
    border: 1px solid #aaa; /* Border for better definition */
    border-radius: 3px; /* Rounded corners for a modern look */
    padding:  2px 3px 3px 3px;
    margin-right: 10px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease; /* Smooth transitions */
    font-weight: 400;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    font-size:10px;
    color: #555555;
}

.button.wpdd-direction-arrow:hover,
.button.wpdd-sort-field:hover,
.button.wpdd-controls-scroll:hover,
.button.wpdd-controls-reset:hover {
    background: linear-gradient(75deg, #ffffff, 10%, #f0f0f0); /* Hover effect gradient */
    box-shadow: 1px 2px 6px 1px rgba(0, 0, 0, 0.24); /* Subtle shadow on hover */
    transform: translateY(-2px); /* Slight lift on hover */
}

.button.wpdd-active {
    background: linear-gradient(75deg, #ffffff, 10%, #f0f0f0); /* Highlight active state with a soft gradient */
    box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.24); /* Active shadow effect */
    border: 1px solid #999999; /* Border for better definition */
    }

/* Specific button types adjustments */
.button.wpdd-controls-scroll {
    margin-right: 8px;
    padding: 3px 5px 3px 10px; /* Adjust for scroll button */
}

.button.wpdd-controls-reset {
    margin-right: 10px;
}

.wpdd-controls-fwd-back,
.wpdd-controls-sorting {
    display: inline-block;
    padding: 3px 5px 3px 10px;
}

.wpdd-controls-sorting {
    margin-left: 20px;
}

/*** end control buttons ***/


#wpbody-content .wpdd-metabox-holder {
    padding-top: 0px;
}


.wpdd-selectable {
    font-size: 11px;
    padding: 10px 10px 30px 10px;
    margin-top: 10px;
    word-wrap: break-word;
    color: #3350ee;
    user-select: all;
}


.wpdd-tooltip {
    position: relative; 
    display: inline-block; 
}

.wpdd-tooltip .wpdd-tooltiptext::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 5%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #6496b6 transparent;
}

.wpdd-tooltip .wpdd-tooltiptext {
    visibility: hidden;
    width: 350px;
    background-color: #6496b6;
    color: whitesmoke;
    text-align: center;
    border-radius: 3px;
    padding: 9px;
    position: absolute;
    z-index: 1;
    top: 83%;
    left: 50%;
    margin-left: -60px;
    font-weight: 300;
    font-size: 11px;
}

.wpdd-tooltip:hover .wpdd-tooltiptext { 
    visibility: visible; 
}



/**** tables *****/


.cell10 {
    column-width: 10%;
}

div.wpdirectdebit-table {
  font-family: Helvetica, Arial, sans-serif;
//  table-layout: fixed;
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  border: 0px solid #eeeeee;
}
.divTable.wpdirectdebit-table .divTableCell {
  padding: 8px 8px 8px 18px;
}
.divTable.wpdirectdebit-table .divTableHead {
  padding: 8px 8px 8px 18px;
  border-right: 1px solid #eeeeee; 
}
.divTable.wpdirectdebit-table .divTableHead  .divTableCell {
  border: 0px solid #f4f4f4;
}
.divTable.wpdirectdebit-table .divTableBody .divTableCell {
  font-size: 12px;
  padding-right:6px;
  padding-left: 18px;
  color: #333333;
  border-right: 1px solid #eeeeee; 
}
.divTable.wpdirectdebit-table .divTableRow {
  background: rgba(50, 50, 50, 0.1);
}
.divTable.wpdirectdebit-table .divTableRow:nth-child(even) {
  background: rgba(50, 50, 50, 0.15);
}
.divTable.wpdirectdebit-table .divTableHeading {
  background: rgba(50, 50, 50, 0.2);
  border-bottom: 0px solid #f4f4f4;
}
.divTable.wpdirectdebit-table .divTableHeading .divTableHead {
    font-size: 12px;
    color: #333333;
    font-weight: bold;
}

.wpdirectdebit-money {
    text-align: right;
    }

.wpdirectdebit-resource-id {
    padding-left: 0;
    margin-top: 8px;
    margin-bottom: 16px;
    font-weight: bold;
    font-size: 13px;
}

.divTable{ display: table; }
.divTableRow { display: table-row; }
.divTableHeading { display: table-header-group; }
.divTableCell, .divTableHead { display: table-cell; }
.divTableHeading { display: table-header-group; }
.divTableBody { display: table-row-group; }

